Sorry, should have included this as well: /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/ helpers/text_helper.rb:42:in `concat' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/ helpers/form_helper.rb:252:in `form_for' app/views/users/new.html.haml:3 app/controllers/users_controller.rb:29:in `new' /opt/local/bin/thin:19:in `load' /opt/local/bin/thin:19
On Jan 22, 4:55 pm, tatyree <[email protected]> wrote: > Possibly, but I'm seeing it on several different 2.2.2 apps: > > Controller: > > def new > @user = User.new > > respond_to do |format| > format.html > end > end > > View: > > users/new.html.haml > > %h1 New User > > - form_for(@user) do |f| > = f.error_messages > %p > = f.submit(:Update) > > = link_to(:Back, users_url) > > Stack Trace is: > > Showing app/views/users/new.html.haml where line #3 raised: > > You have a nil object when you didn't expect it! > You might have expected an instance of Array. > The error occurred while evaluating nil.<< > > Extracted source (around line #3): > > 1: %h1 New User > 2: > 3: - form_for(@user) do |f| > 4: = f.error_messages > 5: %p > 6: = f.submit(:Update) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" 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/haml?hl=en -~----------~----~----~----~------~----~------~--~---
