Sha256: c0be93a7261a693e1801520616f1db3e9489538909a3f205dcb590e681297613
Contents?: true
Size: 414 Bytes
Versions: 33
Compression:
Stored size: 414 Bytes
Contents
module CabooseStore class ReviewsController < CabooseStore::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
33 entries across 33 versions & 1 rubygems