The following exception occurs when trying to use a *_url-style route helper:
ArgumentError - Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true:
This occurs when the Rails.application.routes.url_helpers has been included in a component and you try to use any sort of *_url method, like root_url or similar.
The following exception occurs when trying to use a
*_url
-style route helper:ArgumentError - Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true:
This occurs when the
Rails.application.routes.url_helpers
has been included in a component and you try to use any sort of*_url
method, likeroot_url
or similar.