put
match '*path' => 'your_controller#your_action'
at the end of the routes.rb file. This is important, since the routes are stepped through top down.
See also http://guides.rubyonrails.org/routing.html -> 3.10
More Related Contents:
- Format a string containing Phone numbers
- ActiveRecord: size vs count
- PG::Error: SELECT DISTINCT, ORDER BY expressions must appear in select list
- Rails 3: Get Random Record
- Rails 3, has_one / has_many with lambda condition
- Rails update_attributes without save?
- How to get a query string from a URL in Rails
- Pass a variable into a partial, rails 3?
- Using send_file to download a file from Amazon S3?
- Rails 3 disabling session cookies
- Can we call a Controller’s method from a view (as we call from helper ideally)?
- How to get a Date from date_select or select_date in Rails?
- counter_cache with has_many :through
- How to match accented characters with a regex?
- f.error_messages in Rails 3.0
- What is the right way to override a setter method in Ruby on Rails?
- How to change the default path of view files in a Rails 3 controller?
- Why use “self” to access ActiveRecord/Rails model properties?
- Convert UTC to local time in Rails 3
- What does do in rails erb?
- How to define action with simple form for?
- Ruby on Rails Callback, what is difference between :before_save and :before_create?
- Rails 3 – Speed up Console Loading Time
- Why is Rspec saying “Failure/Error: Unable to find matching line from backtrace”?
- Is there a “phpmyadmin” for Ruby on Rails? [closed]
- Always getting 401 Unauthorized with new install of Rails + Devise
- Rails 2 to Rails 3 : using link_to instead of link_to_remote (including remote and update)
- Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
- Ruby 1.9.2 and Rails 3 cannot open rails console
- Why should we avoid using class variables @@ in rails?