Created
December 6, 2008 19:38
-
-
Save ashgti/32941 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
## router.rb | |
namespace :admin do | |
match('/').to(:controller => 'dash', :action => 'index').name(:dash) | |
resources :users | |
resources :teams | |
resources :seasons do | |
resources :games | |
end | |
end | |
## admin/seasons/index.html.haml | |
=link_to 'Show', resource(@season, :namespace => 'admin') | |
# puts: | |
# merb : worker (port 4000) ~ Resource route not found: [#<Season id=1 year=2008>] - (Merb::Router::GenerationError) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment