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