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.

Please advise.

Premanshu

-- 
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 email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to