From 994bfd4a24260fe3c8310c919d92dbcb2467c4b0 Mon Sep 17 00:00:00 2001 From: Florian Staudacher Date: Mon, 18 Jun 2012 14:47:29 +0200 Subject: [PATCH] fix client-side validations in registration form + test --- app/views/registrations/new.html.erb | 2 +- features/signs_up.feature | 23 +++++++++++++++++++ features/step_definitions/custom_web_steps.rb | 4 ++++ features/step_definitions/session_steps.rb | 4 ++++ features/support/user_cuke_helpers.rb | 6 +++++ 5 files changed, 38 insertions(+), 1 deletion(-) diff --git a/app/views/registrations/new.html.erb b/app/views/registrations/new.html.erb index a0911372d..67af6f7bb 100644 --- a/app/views/registrations/new.html.erb +++ b/app/views/registrations/new.html.erb @@ -19,7 +19,7 @@ <%= t('.sign_up') %> - <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:class => "form-horizontal block-form", :autocomplete => "off"}, :validate => true) do |f| %> + <%= form_for(resource, :validate => true, :url => registration_path(resource_name), :html => {:class => "form-horizontal block-form", :autocomplete => "off"}) do |f| %>