search for: unfollow

Displaying 1 result from an estimated 1 matches for "unfollow".

Did you mean: follow
2012 Feb 18
0
Rails NameError : uninitialized constant RelationshipsController
...:authenticate def create @user = User.find(params[:relationship][:followed_id]) current_user.follow!(@user) respond_to do |format| format.html { redirect_to @user } format.js end end def destroy @user = Relationship.find(params[:id]).followed current_user.unfollow!(@user) respond_to do |format| format.html { redirect_to @user } format.js end end end ----------------------- And here''s the code for my relationship model (relationship.rb): class Relationship < ActiveRecord::Base attr_accessible :followed_id belongs_to :...