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
now it works.
Just submitted a pull request to fix this generator. Just have to wait till Ryan accepts it.
Thanks, I'll mark this closed since there's a pull request.
Force instance variable on edit.html.hml. closes #89