From 294019753f128ce94835f3a7c2f5ae175adb8580 Mon Sep 17 00:00:00 2001 From: cgat Date: Tue, 16 Jul 2013 14:24:22 +1200 Subject: [PATCH] Update registrations_controller.rb In create method, changed "build_resource" to "build_resource(sign_up_params)", otherwise, the resource is built without an email address. I'm using devise 3.0, it's registration controller does the same thing. --- app/controllers/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 308a177..4208e89 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -2,7 +2,7 @@ class RegistrationsController < Devise::RegistrationsController # override #create to respond to AJAX with a partial def create - build_resource + build_resource(sign_up_params) if resource.save if resource.active_for_authentication?