On Nov 12, 6:15 am, Premanshu Mishra <li...@ruby-forum.com> wrote: > Hi Railers, > > I have put a simple validation > > validates_length_of :subject, :maximum => 10, :message => "pick a > shorter subject" > > If i have more than 10 characters in subject, the message is not being > sent; > but on the contrary, when i click on send button it says message sent > successfully(a custom message written in Controller) , but in reality it > is not getting sent. Why my message pick a shorter subject is not > getting reflected.
Posting some code may help. Are you displaying errors anywhere in your view? Is the "sent successfully" message only being shown if validation is successful? -- 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 email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.