I tried to make this work

http://guides.rubyonrails.org/form_helpers.html#building-complex-forms

the example of

Handle Multiple Models in One Form from Advanced Rails Recipes

but, when I want to create a new project I get this error:

NoMethodError in ProyectsController#new
--------------------------------------------------------------------------------------------------------------------------------------
undefined method `tasks' for nil:NilClass

Rails.root: /home/angelo/prueba
Application Trace | Framework Trace | Full Trace

app/controllers/projects_controller.rb:28:in `new'

Request

Parameters:

None

Show session dump

Show env dump
Response

Headers:

None
----------------------------------------------------------------------------------------------------------------------------------------------

btw the line 28 in project controller is

@project.tasks.build

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to