maybe with :onchange works fine, well…about that validation inside 
controller…is not a best practice, the better way is into model, using a method 
validates_each, this method will validate any condition with the respective 
field, any doubt, please just talk

i hope it help dude

Em 13/07/2011, às 22:59, Demon Mind escreveu:

> Leoncio Caminha wrote in post #1010607:
>> you can to that using a js, putting into application.js, calling the
>> function on the change focus
>> Em 13/07/2011, s 22:45, Demon Mind escreveu:
> 
> how can i call the function on the change focus? on(change)....?
> 
> can i do that inside the controller without a js?
> 
> -- 
> 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.
> 

-- 
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