Displaying 1 result from an estimated 1 matches for "add_new_user_to_account".
2006 Jun 20
2
Validation error_messages_for problem
I am having trouble getting error_messages_for to work.
My controller(relevant parts) looks like
def configure
@account = session[:account]
@user = User.new
end
def add_new_user_to_account
@user = User.new(params[:user])
if @user.valid?
session[:account].users << @user
end
redirect_to :action=> ''configure''
end
end
and my view configure.rhtml
<%= error_messages_for ''user'' %>
<%=start_form_tag :action...