but when i click the link ,it will redirect to the show page ,it means
that the show action is invoked,acturally i want to delete it not show
the details, so ,i think the :method=>:delete doesnt work, i search a
lot to find the solution,some advise to add <%= javascript_include_tag
:all %> to the layout,but it still doesnt work, anyone can help me ?
Thanks very much.
PS:
these two links provide the solution about this kind of problem,i tried,
but it doesnt work.
but when i click the link ,it will redirect to the show page ,it means
that the show action is invoked,acturally i want to delete it not show
the details, so ,i think the :method=>:delete doesnt work, i search a
lot to find the solution,some advise to add <%= javascript_include_tag
:all %> to the layout,but it still doesnt work, anyone can help me ?
Thanks very much.
you want to destroy them using ajax? or just destroy?
What do you have on your destroy action in the controller?
but when i click the link ,it will redirect to the show page ,it means
that the show action is invoked,acturally i want to delete it not show
the details, so ,i think the :method=>:delete doesnt work, i search a
lot to find the solution,some advise to add <%= javascript_include_tag
:all %> to the layout,but it still doesnt work, anyone can help me ?
Have you checked in log/development.log to see what is logged when you
click the link?
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.