Tuesday, December 14, 2010

[Rails] f.error_messages not replacing variables in production

I have ruby on rails app that I recently deployed to production from a
test environment. This is the first Rails app I've deployed to
production.

I am using form_for and f.error_messages for displaying validation
errors. However when I pulled the code into my production environment
and I have validation errors instead of getting the nice messages I
receive locally and in test I get:


1 error prohibited this {{model}} from being saved

There were problems with the following fields:
{{attribute}} {{message}}


with none of the replacement variables replaced. Everything is
version controlled so I know there are no code differences. I used
rake rails:freeze:gems to package all of my libraries in the vendor/
folder of my app so as I understand there should be no differences
there.

I am at a total loss.

I am using Rails 2.3.5

Anyone have any advice to offer?

Thanks,

dave

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate