rails 3.2.11

My app has User model, its one of the fields is entrepreneur:boolean.

So users have two types; one is normal users, the other is professional
users.

For normal users, only emails and usernames are required and other
fields are optional.
For professional users, in addition to above, addresses and real names
are required.

Is there any Ruby way to set the requirement depending on the type of
users?

Is JavaScript the only way?

Sorry about to being too broad and too general.  To be honest, I have no
idea where to start.


Soichi

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to