explainer wrote:
I would like my Rails app to supply a callback url to another app. I currently have a yaml file in the config folder in which I put the host name, but I would like to be able to query that dynamically and do away with the yaml file. Is there a method call that returns the current host?-- You should be able to do "name = system 'hostname' " if you are on a linux host. This will not give the name used by a virtual host though. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=. |
- [Rails] How can a rails app get its host name? explainer
- [Rails] Re: How can a rails app get its host name? Frederick Cheung
- Re: [Rails] How can a rails app get its host name? Norm Scherer
- [Rails] Re: How can a rails app get its host name? candlerb
- [Rails] Re: How can a rails app get its host name? sami
- Re: [Rails] How can a rails app get its host name? Andres Paglayan
- [Rails] Re: How can a rails app get its host name? INDRANIL MUKHERJEE