I’m in the throws of deploying an app on site5, and I’m getting strange
errors. I think I might need to understand how error_messages_for
I get a pretty standard looking error:
You have a nil object when you didn’t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occured while evaluating nil.errors
Extracted source (around line #7):
6: <% @title = ‘Upload New Image’ %>
7: <%= error_messages_for(‘image’) %>
the production box is apache fastcgi linux, my dev box is windows
webrick. This seems odd to me because I’ve never had to instantiate a
class, or check for it in order to use the error_messages_for method in
my pages. Is it a versioning thing maybe?