Sha256: 49902a30b8e3467f2c5b952ee7930f66c5296f9e7c5b4c2688083bd35555437e
Contents?: true
Size: 404 Bytes
Versions: 352
Compression:
Stored size: 404 Bytes
Contents
module Caboose class ReviewsController < Caboose::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
352 entries across 352 versions & 1 rubygems