Ruby on Rails: Why the confirmation message does not appear in “link_to('delete', …)”?

Check your javascript_include_tag and it should work fine :).

%> check your javascript_include_tag and it should work fine :).

You probably had a typo. I got: undefined local variable or method product' for #:0x237d590>. What did you mean rather than product`?

– Misha Moroshko Dec 14 '10 at 10:58 product is an object that you want to delete – codevoice Dec 14 '10 at 11:22 Could you please explain what's wrong with my link_to(...) comparing to yours? – Misha Moroshko Dec 14 '10 at 11:27 yup :) your link_to has no information which controller should do your delete action! – codevoice Dec 14 '10 at 14:09 about link_to -> api.rubyonrails.Org/classes/ActionView/Helpers/… – codevoice Dec 14 '10 at 14:16.

Ensure rails. Js is being loaded on the page. The easiest way to accomplish this is with: javascript_include_tag :defaults.

Brian: It is loaded. – Misha Moroshko Dec 14 '10 at 10:52 Strange. Are there any Javascript errors in the console on page load?

– Brian Rose Dec 14 '10 at 10:54 Really strange :) Now I get the following error: undefined method product_path' for #:0x21ad250>` (I don't know why it didn't appear before that) – Misha Moroshko Dec 14 '10 at 11:09 Do you have resources :products in your routes file? – Brian Rose Dec 14 '10 at 11:10 Also, you should use codevoice's code -- it's correct. – Brian Rose Dec 14 '10 at 11:14.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions