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
I don't use 'devise' gem, but only an initializer devise.rb.
I successfully sent a email confirmation link with the following signed up user.
but I believe I found some problems about the confirmable feature.
Please check them if I was correctly realized.
problem
** the generated confirmation link lost the full length of the confirmation token. **
the confirmation token is
when I clicked the link it requests GET to omniauth/confirmation!
What the heck is going on?
so,, I've been debugging about this problem and realized User instance does not have the Devise gem's method, which is 'confirm_by_token' method.
the method is used to find a user by its confirmation token and try to confirm it.
Look at the below
2.2.2:003 > User.first.confirm_by_token("d2880361f4baaf0c8304f393a3d6a41a49042f6e4ee2f2d3703f24b503bd6d8f")UserLoad(1.3ms)SELECT"users".* FROM"users"ORDERBY"users"."id"ASCLIMIT1NoMethodError: undefinedmethod`confirm_by_token' for #<User:0x007f88c2197100> from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activemodel-4.2.1/lib/active_model/attribute_methods.rb:433:in `method_missing' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/rolify-4.0.0/lib/rolify/role.rb:78:in `method_missing'from(irb):3from/Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands/console.rb:110:in`start' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands/console.rb:9:in `start' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:68:in `console'from/Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in`run_command!' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top(required)>' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'from/Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in`block in require' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'from/Users/seoyoochan/dev/bitsnut/bitsnut-api/bin/rails:8:in`<top (required)>' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `block in load'from/Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in`load_dependency' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/commands/rails.rb:6:in `call'from/Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/command_wrapper.rb:38:in`call' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:183:in `blockinserve' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:156:in `fork'from/Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:156:in`serve' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:131:in `blockinrun' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:125:in `loop'from/Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:125:in`run' from /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application/boot.rb:18:in `<top(required)>' from /Users/seoyoochan/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'from/Users/seoyoochan/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in`require' from -e:1:in `<main>'2.2.2:004 > ^C
Am I completely doing wrong about implementing email confirmation feature or what?
The text was updated successfully, but these errors were encountered:
In an effort to cleanup this project and prioritize a bit, we're marking issues that haven't had any activity in a while with a "close-in-7-days" label. If we don't hear from you in about a week, we'll be closing this issue. Obviously feel free to re-open it at any time if it's the right time or this was done in error!
If you are still having the issue (especially if it's a bug report) please refer to our new Issue Template to provide some more details to help us solve it.
I don't use 'devise' gem, but only an initializer devise.rb.
I successfully sent a email confirmation link with the following signed up user.
but I believe I found some problems about the confirmable feature.
Please check them if I was correctly realized.
problem
** the generated confirmation link lost the full length of the confirmation token. **
the confirmation token is
the above link actually returns this url address.
when I clicked the link it requests GET to omniauth/confirmation!
What the heck is going on?
so,, I've been debugging about this problem and realized User instance does not have the Devise gem's method, which is 'confirm_by_token' method.
the method is used to find a user by its confirmation token and try to confirm it.
Look at the below
Am I completely doing wrong about implementing email confirmation feature or what?
The text was updated successfully, but these errors were encountered: