Sha256: 92b000ecee7a32841002b599449a06bd0b325c6b10d717f8d5aff97682ec247c
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
class RatingsController < InheritedResources::Base def create @rating = Rating.new(params[:rating]) set_polymorphic_vars(@rating,"rateable") add_fingerprint_and_user_id(@rating) create! do |success, failure| success.html do Reputation.add("rated",current_user) redirect_to :back end failure.html { redirect_to :back } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_engine-0.0.1 | app/controllers/ratings_controller.rb |