All,
I''ve started to get ActionView::TemplateError (undefined method
`errors'' for nil:NilClass) on all forms that have error_message_on.
I''m stumped as this is not ocurring in development but in production
so I can''t reproduce the error locally.
ActionView::TemplateError (undefined method `errors'' for nil:NilClass)
on line #5 of app/views/account/_register_form.rht$
2: <fieldset>
3: <legend>Registration</legend>
4: <p>
5: <%=error_message_on(:user, :email, ''Email '',
'''', ''inputError'')%>
6: <div class="reg information">You''ll be logging
into netTrader
with this address</div>
7: <label for="user_email"
class="required">Email</label>
8: <%= text_field ''user'', ''email'',
{:maxlength => 200, :size => 30} %>
/home/2363/data/rubygems/gems/gems/actionpack-1.12.5/lib/action_view/helpers/active_record_helper.rb:88:in
`error_message_on''
#{RAILS_ROOT}/app/views/account/_register_form.rhtml:5:in
`_run_rhtml_account__register_form''
--
Cheers,
Serdar Kilic
http://weblog.kilic.net/
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---