Right now the following order generates errors (with all the dependencies installed):
./script/generate dscaffold Duck name:string about:text _actions:new,create,index,quack
The errors are:
On apps/views/duck/index.html.haml
@collection.each do |resource| #gives an error (@collection is nil)
On apps/views/duck/new.html.haml
semantic_form_for(@resource) do |form| #gives an error (@resource is nil)
I believe the second error will also happen on edit - I just didn't generate a view for the action.
If I change @collection and @resource to @ducks and @duck the errors go away.
Right now the following order generates errors (with all the dependencies installed): ./script/generate dscaffold Duck name:string about:text _actions:new,create,index,quack
The errors are:
I believe the second error will also happen on edit - I just didn't generate a view for the action.
If I change @collection and @resource to @ducks and @duck the errors go away.