Created
April 25, 2009 23:19
-
-
Save rgrove/101797 to your computer and use it in GitHub Desktop.
Impossible to route or rewrite requests for static files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It's not working. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment