RailsCasts Pro episodes are now free!

Learn more or hide this

Paul Yeoh's Profile

GitHub User: paul-ylz

Comments by Paul Yeoh

Avatar

Thanks! This worked, though still don't understand why.

Avatar

After doing the exercise again, I can pin the above error to whitespace issues.
It seem that the scaffolding generated in the view file indents with spaces. I was indenting with tabs. When I changed all indentation throughout the file to tabs I could follow the same indentation as the screencast.

Avatar

I'm new to CoffeeScript.

I couldn't get the template to render. This fixed it:
In entries_index.js.coffee, render: -> had to be indented 1 level in from template: JST['entries/index'].

In the ascii cast, they appear to be on the same level of indentation.

Hope this is of help to someone.