Project starting with rails composer to study
-
Create/Update category belongs_to product / product has_one category
-
Create/Update class Product < ActiveRecord::Base has_many :variants has_one :image
end class Variant < ActiveRecord::Base belongs_to :product
end class Image < ActiveRecord::Base belongs_to :product
end
-
Ex.: produto = Product.create(name: "jeans", category: "clothes", :caracteristics_attirbutes => {color: "blue", size: "M", genre: "male"})
-
Implement the omniauth authentication with facebook
-
Filter for adm, sellers and clientes layers: before_action :authenticate_user! Sellers can access the users historic
-
update the format for layout navigations links html
- <%= current_user.email %>
-
Add the historic of buy from each user at the user_session.