rails-prelaunch-signup icon indicating copy to clipboard operation
rails-prelaunch-signup copied to clipboard

Devise cannot build resource

Open shanbhardwaj opened this issue 12 years ago • 10 comments

The request invite form shows Email can't be blank message even with a valid email. Devise is not being able to build resource from the params hash.

shanbhardwaj avatar Aug 02 '13 08:08 shanbhardwaj

Let me guess, Rails 4.0? There's no Rails 4 version (yet) for the rails-prelaunch-signup example.

DanielKehoe avatar Aug 02 '13 14:08 DanielKehoe

UNSUBSCRIBE

Mark Richman web: www.markrichman.com email: [email protected] tel: (954) 234-9049 http://www.linkedin.com/in/mrichman

On Fri, Aug 2, 2013 at 10:35 AM, Daniel Kehoe [email protected]:

Let me guess, Rails 4.0? There's no Rails 4 version (yet) for the rails-prelaunch-signup example.

— Reply to this email directly or view it on GitHubhttps://github.com/RailsApps/rails-prelaunch-signup/issues/49#issuecomment-22009553 .

mrichman avatar Aug 02 '13 14:08 mrichman

@mrichman to get the repo notification messages out of your inbox, got to https://github.com/RailsApps/rails-prelaunch-signup/ and click the "Unwatch" button. It's a GitHub thing.

DanielKehoe avatar Aug 02 '13 14:08 DanielKehoe

Thank you! DUH! :)

Mark Richman web: www.markrichman.com email: [email protected] tel: (954) 234-9049 http://www.linkedin.com/in/mrichman

On Fri, Aug 2, 2013 at 10:42 AM, Daniel Kehoe [email protected]:

@mrichman https://github.com/mrichman to get the repo notification messages out of your inbox, got to https://github.com/RailsApps/rails-prelaunch-signup/ and click the "Unwatch" button. It's a GitHub thing.

— Reply to this email directly or view it on GitHubhttps://github.com/RailsApps/rails-prelaunch-signup/issues/49#issuecomment-22010011 .

mrichman avatar Aug 02 '13 14:08 mrichman

Its rails 3.2.13 with Ruby 2.0.0-p247

shanbhardwaj avatar Aug 02 '13 18:08 shanbhardwaj

Maybe an issue with Devise 3.0. Try:

gem "devise", "2.2.5"

DanielKehoe avatar Aug 05 '13 01:08 DanielKehoe

Looks like a change in Devise. I have a fork of the 1-click prelaunch and it's using Devise 2.2.5 and registration works. However, and using the composer method to build this version of the prelaunch site, I have Devise 3.0 and registration doesn't work, stating email can't be blank. To get it work I had to do the following in the create action:

build_resource sign_up_params

HTH

melriffe avatar Aug 08 '13 15:08 melriffe

@melriffe thanks, this worked for me!

commodity avatar Aug 12 '13 22:08 commodity

@melriffe Big thanks! That same issue was giving me a headache.

jlepis avatar Aug 26 '13 23:08 jlepis

@melriffe Still big thanks, drove me crazy to figure this out.

michaelcham avatar Nov 23 '13 19:11 michaelcham