Forum: Ruby on Rails ActionView::Template Error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Serdar Kılıç (Guest)
on 2007-03-11 09:08
(Received via mailing list)
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}


Serdar Kilic
This topic is locked and can not be replied to.