rails.nerd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2010-Feb-20 09:32 UTC
rails3 validator - has no error message?
Hey So I can create validations like this: validates :title, :presence => true, :uniqueness => true, :length => { :maximum => 100 } BUT I cannot use ":message=>''blah blah''" ... ? I am stuck with the default "is invalid" error message? Does anyone have any insite into this? cheers -- 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 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
rails.nerd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2010-Feb-20 23:03 UTC
Re: rails3 validator - has no error message?
Maybe I''m meant to wrap the validation in something? On Feb 20, 8:32 pm, "rails.n...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <rails.n...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey > > So I can create validations like this: > > validates :title, :presence => true, :uniqueness => true, :length => > { :maximum => 100 } > > BUT I cannot use ":message=>''blah blah''" ... ? > > I am stuck with the default "is invalid" error message? > > Does anyone have any insite into this? > > cheers-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.