Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in AfterSignupController#update #273

Closed
thubamamba opened this issue Jan 21, 2021 · 1 comment
Closed

TypeError in AfterSignupController#update #273

thubamamba opened this issue Jan 21, 2021 · 1 comment

Comments

@thubamamba
Copy link

thubamamba commented Jan 21, 2021

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.

Screenshot 2021-01-21 at 08 51 40

@schneems
Copy link
Member

I advise you to re-post the question on stack overflow. Sorry https://github.com/zombocom/wicked#support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants