Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3.1rc4 defaults.js not found

I have a brand new Rails 3.1rc4 project. After generating a scaffold, migrating and creating a new entry I noticed that I could not destroy the entry I had just created.

It turns out that "/assets/defaults.js" can't be found so the destroy confirmation dialog isn't popped up.

I figure this might have something to do with the new asset pipeline, but searching for solutions has not helped me out much.

Any idea why defaults.js can't be found?

Thanks for any help.

like image 788
Jeremy Herrman Avatar asked Jun 15 '11 15:06

Jeremy Herrman


1 Answers

It's most likely because the reference to

javascript_include_tag :defaults

is still in the application layout. That reference should be changed to

javascript_include_tag "application"
like image 76
jgkite Avatar answered Oct 20 '22 22:10

jgkite