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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2010-Dec-15  10:30 UTC
Re: f.error_messages not replacing variables in production
On 15 December 2010 01:15, davekerber <davidjkerber-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.Google suggests some possibilities, google for rails error prohibited this model from being saved Problems with internationalisation seem to be favourite. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
David Kerber
2010-Dec-15  17:17 UTC
Re: f.error_messages not replacing variables in production
Thanks Colin, once I had the write thing to search for on google I found it very quickly. Thanks for your help. dave On Wed, Dec 15, 2010 at 4:30 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 15 December 2010 01:15, davekerber <davidjkerber-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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. > > Google suggests some possibilities, google for > rails error prohibited this model from being saved > Problems with internationalisation seem to be favourite. > > Colin > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.