if @errors page.replace_html 'user_pass_errors', :inline => render_errors elsif !@user.errors.empty? page.replace_html 'user_pass_errors', :inline => error_messages_for(:user, :object => @user) else page.redirect_to :action=>'list' end