Is it possible to rewrite all URL''s (routes) inside a rails app for all local request to link to other domain if RAILS_ENV=test. If I open the application at www.domain_for_private_site.com, then all forms, links, etc, should make requests on www.domain_for_public_site.com? For example, if I make a get request on http://www.domain_for_private_site.com/blogs/new, that contains something like: <form method="post" action="/blogs"> and it should be changed with this: <form method="post" action="http://www.domain_for_public_site.com// blogs"> same for all other URL''s. It should be done in Rails, not in Apache server or similar. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---