You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def update @user = current_user
case step
when :complete_profile
@user.update_attributes(user_params)
end
sign_in(@user, bypass: true) # needed for devise
render_wizard @user
end
def finish_wizard_path
root_path
end
private
def user_params
params.require(:user)
.permit(:avatar, :hobbies, :date_of_birth, :current_city, :twitter_handle,
:instagram_handle, :facebook_profile, :gender, :bio)
end
end
`
Here is the error that I receive when attempting to update the profile.
The text was updated successfully, but these errors were encountered:
I am not sure what I am doing wrong, can you kindly advise. This is how my update After Signup controller looks like:
`
class AfterSignupController < ApplicationController
include Wicked::Wizard
steps :complete_profile
def show
@user = current_user
render_wizard
end
def update
@user = current_user
case step
when :complete_profile
@user.update_attributes(user_params)
end
sign_in(@user, bypass: true) # needed for devise
render_wizard @user
end
def finish_wizard_path
root_path
end
private
def user_params
params.require(:user)
.permit(:avatar, :hobbies, :date_of_birth, :current_city, :twitter_handle,
:instagram_handle, :facebook_profile, :gender, :bio)
end
end
`
Here is the error that I receive when attempting to update the profile.
The text was updated successfully, but these errors were encountered: