new MainController, empty artist result fix

This commit is contained in:
Hipster Hitman
2011-04-09 17:02:28 +04:00
parent 2f611742ba
commit 861bb9c69b
11 changed files with 79 additions and 24 deletions
+6 -2
View File
@@ -1,4 +1,6 @@
Beathaven::Application.routes.draw do
get "main/index"
# The priority is based upon order of creation:
# first created -> highest priority.
@@ -49,12 +51,14 @@ Beathaven::Application.routes.draw do
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
# root :to => "welcome#index"
root :to => "main#index", :as => "main"
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))'
match 'artist/:name' => 'artist#view'
match 'artist(/:name)' => 'artist#view'
end