修改了路由

This commit is contained in:
kaizheng 2013-08-27 22:23:58 +08:00
parent 1510a6466e
commit cce0b299b7
2 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ RedmineApp::Application.routes.draw do
#added by young #added by young
resources :users do resources :users do
member do member do
match 'user_projects', :to => 'users#user_projects', :via => :get, :as => "projects" match 'user_projects', :to => 'users#user_projects', :via => :get
match 'user_activities', :to => 'users#show', :via => :get, :as => "user_activities" match 'user_activities', :to => 'users#show', :via => :get, :as => "user_activities"
match 'user_newfeedback', :to => 'users#user_newfeedback', :via => :get, :as => "user_newfeedback" match 'user_newfeedback', :to => 'users#user_newfeedback', :via => :get, :as => "user_newfeedback"
match 'watch_calls', :controller => 'users', :action => 'watch_bids', :via => [:get , :post] match 'watch_calls', :controller => 'users', :action => 'watch_bids', :via => [:get , :post]
@ -90,7 +90,7 @@ RedmineApp::Application.routes.draw do
end end
end end
match 'users/:id/user_newfeedback', :to => 'users#user_newfeedback', :via => :get, :as => "feedback" match 'users/:id/user_newfeedback', :to => 'users#user_newfeedback', :via => :get, :as => "feedback"
match 'users/:id/user_projects', :controller => 'users', :action => 'user_projects', :via => :get, :as => "projects" match 'users/:id/user_projects', :controller => 'users', :action => 'user_projects', :via => :get
#end #end
match 'my/account', :controller => 'my', :action => 'account', :via => [:get, :post] match 'my/account', :controller => 'my', :action => 'account', :via => [:get, :post]
match 'my/account/destroy', :controller => 'my', :action => 'destroy', :via => [:get, :post] match 'my/account/destroy', :controller => 'my', :action => 'destroy', :via => [:get, :post]

View File

@ -367,7 +367,7 @@ ul.projects li.root
{ {
background-color:#fff; /*顶层导航颜色*/ background-color:#fff; /*顶层导航颜色*/
color: #fff; color: #fff;
font-size:16px; font-size:15px;
font-family: 微软雅黑; font-family: 微软雅黑;
position:relative; position:relative;
padding:0; padding:0;