SampleApp::Application.routes.draw do
resources :users
resources :sessions, only: [:new, :create, :destroy]
resources :events do
member do
get :members
end
collection do
get :search
end
end
resources :eventjoinings, only: [:create, :destroy]
root to: 'static_pages#home'
match '/signup', to: 'users#new', via: 'get'
match '/signin', to: 'sessions#new', via: 'get'
match '/signout', to: 'sessions#destroy', via: 'delete'
match '/help', to: 'static_pages#help', via: 'get'
match '/about', to: 'static_pages#about', via: 'get'
match '/contact', to: 'static_pages#contact', via: 'get'
match '/create', to: 'events#new', via: 'get'
这是我的 route.rb 的内容,root 看起来只用了一次哎~
我的是本地服务器下拉菜单可用,可是部署到 heroku 点下拉菜单没反应=。=
额,我遇到这个问题,后来运行 Precompile 解决了