had to add "@" in edit.html.haml? (Rails 3) #89

jpwynn opened this Issue Feb 20, 2011 · 2 comments


None yet
3 participants

jpwynn commented Feb 20, 2011

Added nifty-generator to an existing rails 3 project today. To get the hang of it I scaffolded a new model "Fake" with three fields:

rails g nifty:scaffold Fake field1:string field2:string field3:string --haml

show and new worked fine but EDIT gave the error undefined method 'fake'

I edited the edit.html.haml file and changed

link_to "Show", fake

to @Fake

now it works.


nhocki commented Feb 20, 2011

Just submitted a pull request to fix this generator. Just have to wait till Ryan accepts it.


ryanb commented Feb 21, 2011

Thanks, I'll mark this closed since there's a pull request.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment