ruby - Got error from devise user and wicked rails gem -


After the

I got an error from the browser after signing up with email and password.

  class UserStepsController & lt; ApplicationController step: private def show @user = current_user render_wizard end def update @user = current_user @ user.update_attributes (user_params) render_wizard @user end def finish_wizard_path flash [: notice] = ". You have registered successfully with Wizard" user_path (current_user ) end private def user_params params.require (: user) .permit (: first_name ,: last_name ,: degree_level ,: role ,: email ,: password) end end  

Registration Controller & lt; Developers :: Registration Controller

  Class Registration Controller & lt; Will :: RegistrationsController def new super end def super end def protected (Resources) make after_sign_up_path_for '/ user_steps' end end  

I allready added routes Resources: user_steps, devise_for: The users ,: controller = the> {: Registration => "Registration"}

my will / Registration / new

  & lt;% = simple_form_for (resource, As: Source_name, url: registration_path (source_name)) | F | | & Gt%; & Lt;% = f.error_notification% & gt; & Lt; Div class = "form-inputs" & gt; & Lt;% = f.input: Email, Required: True, Autofocus: True% & gt; & Lt;% = f.input: Password, Required: True% & gt; & Lt;% = f.input: password_confirmation, Required: true% & gt; & Lt; / Div & gt; & Lt; Div class = "form-action" & gt; & Lt;% = f.button: Submit, "Sign Up"% & gt; & Lt; / Div & gt; & Lt;% end% & gt; & Lt;% = Render "devise / shared / links"% & gt;  

First Name, Last Name and degree_level

  & lt personal.html.erb added;% = form_for (@user ,: url = & gt ; Wizard_path,: Method = & gt ;: put) do | F |% & gt; & Lt;% = f.text_field: first_name% & gt; & Lt;% = f.text_field: last_name% & gt; & Lt;% = f.text_field: degree_level% & gt; & Lt;% = f.submit 'submit', class = & gt; "BTN BTN-Primary"%> & Lt;% end% & gt;  

User model has validated the presence

error message Please review the problems went down: -mudrait "itemprop =" text "> < P> Sorry I want to include in : Rogue :: Wizard


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -