Hi. I have "validates_presence_of :login, :password, :firstname, :lastname" in my user-model. I enter the information in new_user.rhtml: <%= error_messages_for(:user) %> <%= form_remote_tag :url => { :action => :register }, :html => { :id => ''new_user'' } %> I have a register.rjs with :fade. Omitting firstname or any other required field doesn''t trigger any error-message. Is it due to my ajax-form? regards Claus
The portion of your page that is updated when the ajax is called needs to include your: <%= error_messages_for(:user) %> Hope this helps, Ben On 5/19/06, Claus Guttesen <kometen@gmail.com> wrote:> Hi. > > I have "validates_presence_of :login, :password, :firstname, > :lastname" in my user-model. I enter the information in > new_user.rhtml: > > <%= error_messages_for(:user) %> > <%= form_remote_tag :url => { :action => :register }, :html => { :id > => ''new_user'' } %> > > I have a register.rjs with :fade. > > Omitting firstname or any other required field doesn''t trigger any > error-message. Is it due to my ajax-form? > > regards > Claus > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > lists.rubyonrails.org/mailman/listinfo/rails >-- Ben Reubenstein 303-947-0446 benr75.com