Sha256: 1ea04d719ad2fbeb13189dfafd681de9ca5b03c2e106ad82e36b12d8fe7872cb

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

class FavoritesController < InheritedResources::Base
  def create
    create! do |success, failure|
      success.html do
        add_fingerprint_and_user_id(@favorite,true)
        add_able_rep("favorited",@favorite)
        redirect_to :back
      end
      failure.html { redirect_to :back }
    end
  end
  
  def destroy
    def destroy
      destroy! do |success, failure|
        success.html{redirect_to :back}
        failure.html{redirect_to :back}
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_engine-0.0.1 app/controllers/favorites_controller.rb