ruby on rails 3 - What's wrong with my delete link? -
<%= link_to "delete party", party_path(@party.id), :method => :delete %> a called according logs. redirected same show page when click delete link.
instead of @party.id, use @party in party_path().
Comments
Post a Comment