Error on mail to reset password url to path

Missing host to link to! Please provide the :host parameter, set
default_url_options[:host], or set :only_path to true