On 24 Mar 2009, at 10:17, Heinz Strunk wrote:

>
> Hey people,
>
> does anyone know if it's possible to access params inside the
> before_validation function?

before_validation callbacks are instance methods of models, params is  
an instance method of controllers therefore you cannot call params  
from a before_validation callback.

Fred
>
> -- 
> Posted via http://www.ruby-forum.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to