TypeError in AfterSignupController#update
thubamamba opened this issue · 1 comments
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.
I advise you to re-post the question on stack overflow. Sorry https://github.com/zombocom/wicked#support