Created
September 13, 2008 19:47
-
-
Save carllerche/10647 to your computer and use it in GitHub Desktop.
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
Merb::Router.prepare do | |
namespace :admin do | |
match("/dashboard").to(:controller => "dashboard") | |
resources :users do | |
resources :comments | |
end | |
end | |
resources :users do | |
resources :comments | |
end | |
end | |
=begin | |
Currently at / | |
--- | |
resource(@user) => | |
resource(@comment) => | |
@resource(@user, @comment) => | |
How do I generate /users, /users/1/comments | |
How do I generate /admin/users/1 | |
Currently at /admin/dashboard | |
--- | |
resource(@user) => | |
resource(@comment) => | |
@resource(@user, @comment) => | |
How do I generate /users, /users/1/comments | |
How do I generate /admin/users/1 | |
=end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment