How do I get the host and port in a Rails application December 9, 2023 by Tarik "#{root_url}" which should be declared in your routes.rb