On Tue, Mar 24, 2009 at 5:17 AM, Heinz Strunk <[email protected]> wrote: > > Hey people, > > does anyone know if it's possible to access params inside the > before_validation function?
Aren't you doing something like Foo.new( params[:foo] ) already? params is an array and responds to merge, so you can add stuff to params before passing it to the model. -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

