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
<Jagdis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> How to retrieve server address in rails so that in the mail option I
> gethttp://serverIP:300/controller/actionrather
thanhttp://localhost:3000/controller/action
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---