Destroy action not working on Rails 3.0.8
walidov opened this issue · 3 comments
Hi,
Im using nifty_scaffold to build my models, its working fine except for the destroy action, its not working when i click destroy on any entry it just opens the show action.
Im using rails 3.0.8 with ruby 1.9.2
Any thoughts ?!?
It sounds like the JavaScript isn't working. Make sure the rails.js is loaded. This is usually done through a javascript_include_tag :defaults
in your layout file.
Thank you it solved the problem.
I had a similar problem and realized that it was caused by including JQuery javascript files after the default prototype files. Fixed it by removing the prototype files and using JQuery instead, using the approach mentioned here http://www.simonecarletti.com/blog/2010/06/unobtrusive-javascript-in-rails-3/