Can we configure an external URL through routes.rb in ruby on rails.
For example I want something like this:
map.connect '/test,:url=>‘www.yahoo.com’
Is this Possible.
Can we configure an external URL through routes.rb in ruby on rails.
For example I want something like this:
map.connect '/test,:url=>‘www.yahoo.com’
Is this Possible.
No. The easiest way would be to create a new controller that redirects.
Also check out http://lists.rubyonrails.org/mailman/listinfo/rails
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs