Skip to content

Instantly share code, notes, and snippets.

@rgrove
Created April 25, 2009 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgrove/101797 to your computer and use it in GitHub Desktop.
Save rgrove/101797 to your computer and use it in GitHub Desktop.
Impossible to route or rewrite requests for static files
require 'rubygems'
require 'ramaze'
class MainController < Ramaze::Controller
def index
'<a href="/test.txt">Click here</a> to test the route.'
end
def test
'It worked!'
end
end
Ramaze::Route['/test.txt'] = '/test'
Ramaze.start
It's not working.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment