You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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)
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
The text was updated successfully, but these errors were encountered:
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:
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)
Get them to define the default route explicitly, and then use it internally instead of the real one:
The text was updated successfully, but these errors were encountered: