On 3 March 2010 18:21, mac <[email protected]> wrote: > hello, > m following railcast > http://media.railscasts.com/videos/073_complex_forms_part_1.mov > > but i am getting error: undefined method `build' for nil:NilClass
If you look on the line in your code where the error occurs you will likely find that you are using something.build. The error is indicating the your 'something' is nil. If you cannot see why it is nil it might be worth your while looking at the rails guide on debugging at http://guides.rubyonrails.org. This shows various methods of debugging your code. For example you can use ruby-debug to break into your code and inspect your data to see what the problem is. Colin > > can you please help > > though m using belongs_to and has_one relationship rather then > "has_many" is this the problem ??? > > if you want i can provide more details > > > thank you > > -- > 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. > > -- 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.

