Ami wrote:

> how can i make sure the user assign a role BEFORE they can navigate
> away from the page.

Basically you can't.  The user can navigate away by many means that are 
out of your control.  You are better off coming at the problem from a 
different direction and, perhaps, having a default role that is there 
initially and the user either adds another role and removes the default 
(you can restrict removing the final role) or leaves it at default.

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