Displaying 1 result from an estimated 1 matches for "eaddress".
Did you mean:
address
2006 Jul 24
6
error_messages_for not working
...de and I am not able to get it working. The error
message is not coming on the top, it is just getting displayed on a
different page if I dont have the rescue block commented at the bottom.
Model: user.rb
require "digest/sha1"
class User < ActiveRecord::Base
validates_presence_of :eaddress, :fname, :passwd, :pcode, :country,
:day, :year, :month, :gender,
:agreement
validates_confirmation_of :passwd
validates_uniqueness_of :eaddress
validates_length_of :eaddress, :within => 6..255
validates_numericality_of :pcode
end
View: index.rhtml
...
<table class="compbox" ce...