Why active scaffold links(e.g.: Create, Edit, Show, etc.) are not working after assets precompile?
Why active scaffold links(e.g.: Create, Edit, Show, etc.) are not working after assets precompile?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This happened to me as well – very frustrating indeed.
With Rails 3.2 and ActiveScaffold, after pre-compiling assets, all AJAX based forms generated by ActiveScaffold stopped working “in-place”.
Note that the forms still work fine if you load them in the browser directly as “localhost:3000///edit” etc.
It has to do with the sequence in which javascript was loaded in the application.js file. We had to make sure that jquery_ujs is at the end. After making the change, our application.js looks like:
Then run rake assets:precompile and everything works fine.
Hope this helps you!