Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make it easy to change the default action #85

Open
gma opened this issue Jan 6, 2012 · 0 comments
Open

Make it easy to change the default action #85

gma opened this issue Jan 6, 2012 · 0 comments
Labels
Milestone

Comments

@gma
Copy link
Owner

gma commented Jan 6, 2012

When you define a route that gobbles up all requests in your own app.rb file you preclude all standard routes from getting a look in. Two options spring to mind:

  1. Allow users to insert the standard infrastructure oriented routes with one line of code, just above their own get blocks: Nesta.routes_for(:robots, :css, :atom)

  2. Get them to define the default route explicitly, and then use it internally instead of the real one:

module Nesta
  class App
    greedy_routes do
      get '*' do
        'blah blah'
      end
    end
  end
end
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant