Passing a Request

When we want to pass processing to the next matching route we use pass:

get '/guess/:who' do
  pass unless params[:who] == 'Frank'
  'You got me!'

get '/guess/*' do
  'You missed!'
The route block is immediately exited and control continues with the next matching route.

If no matching route is found, a 404 is returned.

Casiano Rodriguez León 2015-06-18