f81fe777cb
handlers in a Sinatra application. Assuming that your application is running on example.com, and that it has been mapped to /myapp, you should be able call url_for from within a handler as follows: url_for "/" # Returns "/myapp/" url_for "/foo" # Returns "/myapp/foo" url_for "/foo", :full # Returns "http://example.com/myapp/foo" WWW: http://github.com/emk/sinatra-url-for PR: ports/149359 Submitted by: Eric Freeman <freebsdports at chillibear.com>
3 lines
245 B
Text
3 lines
245 B
Text
MD5 (rubygem/emk-sinatra-url-for-0.2.1.gem) = ba1095dde7e2437c6f35988859063cd7
|
|
SHA256 (rubygem/emk-sinatra-url-for-0.2.1.gem) = f2c9dfe5f1c8a162efeafc4c8cc1734fe536bee0d5b64f17049b4e956958a565
|
|
SIZE (rubygem/emk-sinatra-url-for-0.2.1.gem) = 5632
|