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

devise - wrong number of arguments (1 for 0) #3

Closed
akrishhna opened this issue Jul 4, 2012 · 4 comments
Closed

devise - wrong number of arguments (1 for 0) #3

akrishhna opened this issue Jul 4, 2012 · 4 comments

Comments

@akrishhna
Copy link

I followed the read me of this gem. Installed gem, generated it and made sure :two_factor_authenticatable is added in my user model. Not sure why I am getting the devise wrong number of arguments error only when :two_factor_authenticatable is added to user model. Could you please guide me on this.

@Houdini
Copy link
Owner

Houdini commented Jul 6, 2012

Could you please provide devise version and log?

@Houdini
Copy link
Owner

Houdini commented Jul 7, 2012

Just tried with devise 2.1.2
didn't notice any errors. Here is my test app:

https://dl.dropbox.com/u/26188736/devise_test.zip

Just don't forget

rake db:create && rake db:migrate

@akrishhna
Copy link
Author

I did every thing. Not sure what the error was. I used your code as reference and implemented my own stuff.
Thanks for the test app though.

@Houdini
Copy link
Owner

Houdini commented Jul 12, 2012

Glad that everything is ok now.
Close this issue, feel free to open new if you have any questions.

@Houdini Houdini closed this as completed Jul 12, 2012
vicomte pushed a commit to vicomte/two_factor_authentication that referenced this issue Aug 15, 2022
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