In my friendship tutorial i have the following actions
def accept
end
def decline
end
def cancel
end
def delete
end
def index
end
def create
end
I can call create has follow <%= link_to "Add Friend",
friendships_path(:friend_id => customer), :method => :post %> but how
can call the following others accepts, decline, and cancel.
Do i need to add the following in my route
resources :friendships do
get 'cancel'
get 'accept'
get 'decline'
end
And call has follow:
In my friendship tutorial i have the following actions
def accept
end
def decline
end
def cancel
end
def delete
end
def index
end
def create
end
I can call create has follow <%= link_to "Add Friend",
friendships_path(:friend_id => customer), :method => :post %> but how
can call the following others accepts, decline, and cancel.
Do i need to add the following in my route
resources :friendships do
get 'cancel'
get 'accept'
get 'decline'
end
And call has follow: