Re: validate :on not working

Valery Kvon
2012-02-23T18:18:39Z

> so I wrote :
>  validates :location, :location => { :on => :create }
>

why don''t you write:

validates :location, :on => :create

--
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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org