Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Merb::Prepare do
- namespace do |admin|
- resources :users
- end
- resources :articles do
- resources :comments
- end
- resources :users do
- resources :comments
- resources :blogs do
- resources :comments
- end
- end
- match("/dashboard").to(:controller => "zomg", :action => "hi2u")
- end
- # Request Resource Controller#action
- # --------------------------------------------------------------------------------
- # /users/1 => Resource(:show, @user) => Users#show
- # /users/1/edit => Resource(:edit, @user) => Users#edit
- # /admin/users/1 => Resource(:admin_show, @user) => Admin::Users#show
- # /users/1/comments/1 => Resource(:show, @user, @comment) => Comments#show
- # /dashboard => Resource(:show, @dashboard) => Zomg#hi2u
- #
- # @dashboard is an instance of a custom object to handle routes that don't map 1-1 with
- # an instance of an ORM class
Add Comment
Please, Sign In to add comment