Hey there,

Have a look at this example
https://gist.github.com/bluemont/e304e65e7e15d77d3cb9
It should solve your problem.



Sent from my iPhone

> On 22 Apr 2014, at 8:47 am, Rita Yahint <[email protected]> wrote:
>
> Hi,
> I'm using Devise (3.2.4), Rails 4 and I'm trying to signup.
>
> I have a Registration Controller where i do have:
>
> "
> def sign_up_params
>             params.require(:user).permit(:email,:first_name,
> :last_name,:mobile, :birthday, :current_password,
> :password,:password_confirmation)
>         end
> "
>
> and everytime i try to sign up I get the following message:
>
> Processing by Devise::RegistrationsController#create as HTML
>  Parameters: {"utf8"=>"✓",
> "authenticity_token"=>"p9qVwZp/rDtJyvfV2TVdNXmh29JEoTs9SbyLHyNSq44=",
> "user"=>{"first_name"=>"Joao", "last_name"=>"Miguel", "birthday"=>"",
> "mobile"=>"0987654", "email"=>"[email protected]",
> "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"},
> "commit"=>"Sign up"}
> Unpermitted parameters: first_name, last_name, birthday, mobile
>
> and my users table is updated but first_name, last_name, birthday,
> mobile are null.
>
> Does anyone has any idea how can I solve this issue?
> thanks in advance
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/3ab6f62b3fdb903d455095ac135a73d9%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/-6049592033299137021%40unknownmsgid.
For more options, visit https://groups.google.com/d/optout.

Reply via email to