ActionView::TemplateError (You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.include?) on line #5 of app/views/admin/_form.rhtml: 2: 3: <!--[form:profile]--> 4: <p><label for="profile_name">Name</label><br/> 5: <%= text_field ''profile'', ''name'' %></p> 6: 7: <p><label for="profile_email">Email</label><br/> 8: <%= text_field ''profile'', ''email'' %></p> any reason why scaffolding new option is failing? i tried it on another rails application and it works fine. the only difference is that my table ''profile'' belongs_to town table and county table. and town and county table has_many profiles. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
disregard email, for some reason, after commenting out some private variables in the profile model, the error went away. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Reasonably Related Threads
- ''wrong number of arguments'' for text_field?
- rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
- Why is this view spec failing?
- Strange error message when rendering the scaffold form
- How to test views with Nested Resources and Partials