How To Retrieve Server Address

How to retrieve server address in rails so that in the mail option I
get http://serverIP:300/controller/action rather than

In /config/environments/{development|test|production}.rb

config.action_mailer.default_url_options =
{:host=>“serverIP”, :port=>300}

On May 20, 5:43 am, jagdish-------Rubindasss [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs