Sha256: 3374ab26b968f79e2fde938a0d604352028eefd17381573f377540cb9cfb1a2a

Contents?: true

Size: 400 Bytes

Versions: 9

Compression:

Stored size: 400 Bytes

Contents

module CabooseStore
  class ReviewsController < ApplicationController  
  
    def add
      content = params[:content]
      product_id = params[:product_id]
      rating = params[:rating]
      name = params[:name]    
      r = Review.new(:content => content, :product_id => product_id, :rating => rating, :name => name)
      r.save
      render :json => true
    end
  
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
caboose-store-0.0.10 app/controllers/caboose_store/reviews_controller.rb
caboose-store-0.0.9 app/controllers/caboose_store/reviews_controller.rb
caboose-store-0.0.8 app/controllers/caboose_store/reviews_controller.rb
caboose-store-0.0.7 app/controllers/caboose_store/reviews_controller.rb
caboose-store-0.0.6 app/controllers/caboose_store/reviews_controller.rb
caboose-store-0.0.5 app/controllers/caboose_store/reviews_controller.rb
caboose-store-0.0.4 app/controllers/caboose_store/reviews_controller.rb
caboose-store-0.0.3 app/controllers/caboose_store/reviews_controller.rb
caboose-store-0.0.2 app/controllers/caboose_store/reviews_controller.rb