centaure, I had the same problem and figured it out.
Your application.js file must be like this:
javascript
// This is a manifest file that'll be compiled into application.js, which will include all the files// listed below.//// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.//// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the// the compiled file.//// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD// GO AFTER THE REQUIRES BELOW.////= require jquery//= require jquery_ujs//= require_tree .//= require underscore//= require backbone////= require .//raffler////= require_tree ../templates///= require_tree .//models//= require_tree .//collections//= require_tree .//views//= require_tree .//routers
And it should be like this:
javascript
// This is a manifest file that'll be compiled into application.js, which will include all the files// listed below.//// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.//// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the// the compiled file.//// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD// GO AFTER THE REQUIRES BELOW.////= require jquery//= require jquery_ujs//= require underscore//= require backbone////= require .//raffler////= require_tree ../templates///= require_tree .//models//= require_tree .//collections//= require_tree .//views//= require_tree .//routers//= require_tree .
Notice the //= require_tree . statement, it must be the last one.
By the way Ryan, I'm the newest "pro" member (just registered) and your job is awesome, keep up the great work. And as a suggestion, warn people about this issue, it may save a couple hours.
I'm having a bunch of trouble trying to make this work beyond what has been said on both screencasts.
I'm simply trying to make a full CRUD, like Rails scaffold, just work. But I'm getting bite by loading times and page rendering.
Anybody else having such problems?
Got Rails 3.2 here and no problems at all. Maybe this?
You are welcome ;)
You are welcome ;)
Thanks a lot! Lifesaver.
+1
Except the server validations, I think that's pretty useful information ;)
centaure, I had the same problem and figured it out.
Your application.js file must be like this:
And it should be like this:
Notice the
//= require_tree .
statement, it must be the last one.By the way Ryan, I'm the newest "pro" member (just registered) and your job is awesome, keep up the great work. And as a suggestion, warn people about this issue, it may save a couple hours.
Hope it helps!