request.env["SERVER_ADDR"] // this will return you server ip address request.server_name or request.host // this will return host name
On Nov 20, 1:55 am, explainer <[email protected]> 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? Syed Samiuzzaman software Engineer Code71 Inc (www.code71.com) product: www.scrumpad.com blog: samiuzzaman.blogspot.com -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=.

