This scenario should have passed, but failing on the last line. Instead of @user, the template writes users_path, which will not work in case of new and edit action.
Scenario: Generate scaffold with index and new action
Given a new Rails app
When I run "rails g nifty:scaffold User name:string index new"
Then I should see "class User" in file "app/models/user.rb"
And I should see "<%= form_for @user do |f| %>" in file "app/views/users/new.html.erb"
Quickly found that it is using NiftyScaffoldGenerator method item_path, instead of lib\generators\nifty\scaffold\scaffold_generator.rb ' s method item_path. Little confusing to me why Rails 3 generator is using Rails 2 generator methods?
fixing form generation when only new action exists for nifty scaffold (thanks gouravtiwari) - closed by 5ffbf7a
fixing form generation when only new action exists for nifty scaffold…
… (thanks gouravtiwari) - closes #83