Created
March 17, 2009 07:00
-
-
Save deepthawtz/80370 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # ==== Parameters | |
| # *path:: | |
| # The relative path (or list of path components) to a directory under the | |
| # root of the application. | |
| # | |
| # ==== Returns | |
| # String:: The full path including the root. | |
| # | |
| # ==== Examples | |
| # Merb.root = "/home/merb/app" | |
| # Merb.path("images") # => "/home/merb/app/images" | |
| # Merb.path("views", "admin") # => "/home/merb/app/views/admin" | |
| # | |
| # @public | |
| def root_path(*path) | |
| File.join(root, *path) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment