{"action":"opened","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/263","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/263/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/263/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/263","id":85162556,"number":263,"title":"confirmable feature bugs?","user":{"login":"seoyoochan","id":2177299,"avatar_url":"https://avatars.githubusercontent.com/u/2177299?v=3","gravatar_id":"","url":"https://api.github.com/users/seoyoochan","html_url":"https://github.com/seoyoochan","followers_url":"https://api.github.com/users/seoyoochan/followers","following_url":"https://api.github.com/users/seoyoochan/following{/other_user}","gists_url":"https://api.github.com/users/seoyoochan/gists{/gist_id}","starred_url":"https://api.github.com/users/seoyoochan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seoyoochan/subscriptions","organizations_url":"https://api.github.com/users/seoyoochan/orgs","repos_url":"https://api.github.com/users/seoyoochan/repos","events_url":"https://api.github.com/users/seoyoochan/events{/privacy}","received_events_url":"https://api.github.com/users/seoyoochan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-04T16:05:00Z","updated_at":"2015-06-04T16:05:00Z","closed_at":null,"body":"I don't use 'devise' gem, but only an initializer devise.rb.\r\nI successfully sent a email confirmation link with the following signed up user.\r\nbut I believe I found some problems about **the confirmable feature**.\r\nPlease check them if I was correctly realized.\r\n\r\n### problem \r\n** the generated confirmation link lost the full length of the confirmation token. **\r\nthe confirmation token is\r\n\r\n    :confirmation_token => \"d2880361f4baaf0c8304f393a3d6a41a49042f6e4ee2f2d3703f24b503bd6d8f\"\r\n\r\n```ruby\r\n<%= link_to 'Confirm my account', confirmation_url(@resource, {confirmation_token: @token, config: message['client-config'].to_s, redirect_url: message['redirect-url']}).html_safe %>\r\n```\r\nthe above link actually returns this url address.\r\n\r\n    http://api.localhost:3000/v1/auth/confirmation?config=default&confirmation_token=ammABW7Y2ge1yUGk5xN3&redirect_url=http%3A%2F%2Flocalhost%3A9000%2F%23welcome\r\n\r\n\r\nwhen I clicked the link it requests GET to **omniauth/confirmation**!\r\nWhat the heck is going on?\r\nso,, I've been debugging about this problem and realized User class method does not have the Devise gem's method, which is 'confirm_by_token' method.\r\nthe method is used to find a user by its confirmation token and try to confirm it. \r\nLook at the below\r\n\r\n```ruby\r\n2.2.2 :003 > User.first.confirm_by_token(\"d2880361f4baaf0c8304f393a3d6a41a49042f6e4ee2f2d3703f24b503bd6d8f\")\r\n  User Load (1.3ms)  SELECT  \"users\".* FROM \"users\"  ORDER BY \"users\".\"id\" ASC LIMIT 1\r\nNoMethodError: undefined method `confirm_by_token' for #<User:0x007f88c2197100>\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activemodel-4.2.1/lib/active_model/attribute_methods.rb:433:in `method_missing'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/rolify-4.0.0/lib/rolify/role.rb:78:in `method_missing'\r\n\tfrom (irb):3\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands/console.rb:110:in `start'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands/console.rb:9:in `start'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:68:in `console'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /Users/seoyoochan/dev/bitsnut/bitsnut-api/bin/rails:8:in `<top (required)>'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `block in load'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/commands/rails.rb:6:in `call'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/command_wrapper.rb:38:in `call'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:183:in `block in serve'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:156:in `fork'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:156:in `serve'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:131:in `block in run'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:125:in `loop'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application.rb:125:in `run'\r\n\tfrom /Users/seoyoochan/.rvm/gems/ruby-2.2.2@api/gems/spring-1.3.6/lib/spring/application/boot.rb:18:in `<top (required)>'\r\n\tfrom /Users/seoyoochan/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom /Users/seoyoochan/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom -e:1:in `<main>'2.2.2 :004 > ^C\r\n```\r\n\r\nAm I completely doing wrong about implementing email confirmation feature or what?"}}