{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/253","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/253/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/253/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/253","id":79541902,"number":253,"title":"Devise token auth tries to send confirmation email even though it is disabled","user":{"login":"uriklar","id":2545447,"avatar_url":"https://avatars.githubusercontent.com/u/2545447?v=3","gravatar_id":"","url":"https://api.github.com/users/uriklar","html_url":"https://github.com/uriklar","followers_url":"https://api.github.com/users/uriklar/followers","following_url":"https://api.github.com/users/uriklar/following{/other_user}","gists_url":"https://api.github.com/users/uriklar/gists{/gist_id}","starred_url":"https://api.github.com/users/uriklar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uriklar/subscriptions","organizations_url":"https://api.github.com/users/uriklar/orgs","repos_url":"https://api.github.com/users/uriklar/repos","events_url":"https://api.github.com/users/uriklar/events{/privacy}","received_events_url":"https://api.github.com/users/uriklar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T17:36:18Z","updated_at":"2015-05-22T17:40:47Z","closed_at":null,"body":"Hi, \r\nI followed the instructions on disabling the :confirmable option. This is my user.rb file:\r\n```\r\nclass User < ActiveRecord::Base\r\n  devise :database_authenticatable, :recoverable,\r\n         :trackable, :validatable, :registerable,\r\n         :omniauthable\r\n  include DeviseTokenAuth::Concerns::User\r\nend\r\n```\r\n\r\nAnd when registering a user I get the error:\r\n\r\n```\r\nActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):\r\n <p>You can confirm your account email through the link below:</p>\r\n <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token, config: message['client-config'].to_s, redirect_url: message['redirect-url']) %></p>\r\n```\r\n\r\nAny idea why? \r\nThanks,\r\nUri"},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments/104723891","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/253#issuecomment-104723891","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/253","id":104723891,"user":{"login":"uriklar","id":2545447,"avatar_url":"https://avatars.githubusercontent.com/u/2545447?v=3","gravatar_id":"","url":"https://api.github.com/users/uriklar","html_url":"https://github.com/uriklar","followers_url":"https://api.github.com/users/uriklar/followers","following_url":"https://api.github.com/users/uriklar/following{/other_user}","gists_url":"https://api.github.com/users/uriklar/gists{/gist_id}","starred_url":"https://api.github.com/users/uriklar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uriklar/subscriptions","organizations_url":"https://api.github.com/users/uriklar/orgs","repos_url":"https://api.github.com/users/uriklar/repos","events_url":"https://api.github.com/users/uriklar/events{/privacy}","received_events_url":"https://api.github.com/users/uriklar/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T17:40:47Z","updated_at":"2015-05-22T17:40:47Z","body":"Ok, so after adding this line:\r\n```\r\nconfig.action_mailer.default_url_options = { :host => 'localhost' }\r\n```\r\nI stop getting the error, but it still sends out the email, so I guess the question still stands.\r\nThanks"}}