RailsCasts Pro episodes are now free!

Learn more or hide this

Alan Rosin Sikora's Profile

GitHub User: alansikora

Site: http://wcd.co

Comments by Alan Rosin Sikora

Avatar

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?

Avatar

Got Rails 3.2 here and no problems at all. Maybe this?

Avatar

+1

Except the server validations, I think that's pretty useful information ;)

Avatar

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.

Hope it helps!