Class: CabooseStore::ReviewsController
- Inherits:
-
ApplicationController
- Object
- Caboose::ApplicationController
- ApplicationController
- CabooseStore::ReviewsController
- Defined in:
- app/controllers/caboose_store/reviews_controller.rb
Instance Method Summary collapse
Instance Method Details
#add ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/caboose_store/reviews_controller.rb', line 4 def add content = params[:content] product_id = params[:product_id] = params[:rating] name = params[:name] r = Review.new(:content => content, :product_id => product_id, :rating => , :name => name) r.save render :json => true end |