There is also the :on option for validations. With combining :on
with :if you could essentially set up several validations that are
triggered by the specific pages.
One validation to ensure presence_of :name, :email and :password :on
= :create
One validation to ensure presence_of :name :on =
Thank you both Pepe and Bob. I appreciate it.
Andrew
On Jul 20, 1:22 pm, Bob rpell...@gmail.com wrote:
There is also the :on option for validations. With combining :on
with :if you could essentially set up several validations that are
triggered by the specific pages.
One validation to
why not just use update_attribute ?
--
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send
Validations usually have an :if/:unless option. That might be helpful.
You could, for example, condition the password and e-mail values to
validate only if the name is present.
On Jul 19, 2:33 pm, Andrew Perkins andrewp...@gmail.com wrote:
Hello, I have a user model which stores a users name,
4 matches
Mail list logo