Answering the question #1 you can achieve this using the request.env[ 'HTTP_HOST' ] variable, that will return you a string with the hostname and the listening port, something like 'localhost:8080'. For the second one, I guess you could create like some constants for storing those keys of your needs, but you're not being very clear so I can not go further. Hope this can help you.
Carlos. -- Posted via http://www.ruby-forum.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=en.

