I know this is old, so in case someone else needs this for rails 4:
get "/blog" => redirect("http://example.com/blog")
Use get instead of Match in Rails 4, otherwise you’ll get a Runtime error
More Related Contents:
- Why do routes with a dot in a parameter fail to match?
- Rails routing to handle multiple domains on single application
- How can I find out the current route in Rails?
- Rails 3 link_to (:method => :delete) not working
- Rails Routes – Limiting the available formats for a resource
- How to change default timezone for Active Record in Rails?
- Why can you not have a foreign key in a polymorphic association?
- Passing parameters in rails redirect_to
- Rails 5: ActiveRecord OR query
- How can I download a file from a URL and save it in Rails?
- Ruby on Rails. How do I use the Active Record .build method in a :belongs to relationship?
- rake db:schema:load vs. migrations
- instance variable vs. symbol in ruby on rails (form_for)
- Set start date and expiration date for Rails cookies
- find vs find_by vs where
- What is the replacement for ActionController::Base.relative_url_root?
- Cannot add a NOT NULL column with default value NULL in Sqlite3
- Bulk Insert records into Active Record table
- ERROR: Failed to build gem native extension on Mavericks
- Convert UTC to local time in Rails 3
- Rails: “BCrypt::Errors::InvalidHash” when trying to sign in
- Rails form_for :remote=>true is not calling js method
- Remote mysql database on Heroku app
- Can nginx be used as a reverse proxy for a backend websocket server?
- Ruby on Rails – Validate a Cost
- How to implement bulk insert in Rails 3
- Ruby on Rails 3 howto make ‘OR’ condition
- Adding foreign key to a rails model
- How to solve ‘libcurl’ not found with Rails on Windows
- using has_many :through and build