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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -