On Jan 15, 4:00 am, Richard Schneeman <rails-mailing-l...@andreas-
s.net> wrote:
> I've written a custom validation ah la advanced rails recipes. When i'm
> in development everything works great. As soon as I "script/server -e
> production"
> then my console gets lit up with errorshttp://www.pastie.org/361177
>
> I played around with what actions cause this, and apparently putting
>
> validates_anything_not_standard :anything
>
> causes an error.
>
> This includes having the validation in my model, or loaded in a
> lib/file.rb . This also includes having no validation code, and just
> placing "validates_anything_not_standard :anything" call in my model.
> I've seen a few other posts about similar problems, but nothing
> conclusive. Why would this happen only when in the production
> environment, and not in development?
My hunch would be because of
http://www.spacevatican.org/2008/11/21/environment-rb-and-requiring-dependencies
Fred
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---