<error> link_to destroy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

<error> link_to destroy

oliver
Hello!
I am getting error with destroy. If I've click destroy, it redirects to show.
And that should happen. It should prompt a confirmation if you want to delete. 
Can you help me in this case.

_______________________________________________
rspec-users mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/rspec-users
Reply | Threaded
Open this post in threaded view
|

Re: <error> link_to destroy

oliver
<%= link_to 'Destroy', department_mst, :confirm => 'Are you sure?', :method => :delete %>

( :confirm => 'Are you sure?', :method => :delete) => this is not functioning when I created the rspec

Please help me. Thanks!