On Jan 28, 2011, at 9:54 AM, Paul Bergstrom wrote:
I can't get this to work.
class User < ActiveRecord::Base
validates :firstname, :presence => true, :message => "First name is
missing"
end
And no error message. Why?
What do your views look like, either at the layout level or the users/
new|edit level? If you don't put some sort of view code in place, you
won't ever see the errors if they're being set. Are you able to see
other errors, and just not that one?
Walter
--
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-
[email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.