Skip to content

Instantly share code, notes, and snippets.

@solnic
Created November 29, 2010 09:26
Show Gist options
  • Select an option

  • Save solnic/719769 to your computer and use it in GitHub Desktop.

Select an option

Save solnic/719769 to your computer and use it in GitHub Desktop.
constraints(:url => 'foo') do
constraints(:mode => 'bar') do
# won't work b/c params are == {} ...
match "/" => redirect { |params, request| "/blah/#{params[:id]}" }
# so I have to do:
match "/" => redirect { |params, request| "/blah/#{request.params[:id]}" }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment