3
ActionView::Template::Error (No route matches {:controller=>"devise/items"}):
8: </head>
9: <body>
10: <nav>
11: <%= link_to_unless_current "Home", :controller => "items", :action => "index" %> |
12: <%= link_to_unless_current "About us", :controller => "site", :action => "about" %> |
13: <%= link_to_unless_current "Contact us", :controller => "site", :action => "contact" %>
14: </nav>
我想做一個簡單的鐵軌在線商店。我包括設計模型用戶(嚴格遵循Railcasts教程),當我嘗試去/ users/sign_in時,我在服務器日誌中得到這個錯誤。我不明白爲什麼當我輸入localhost:3000/users/sign_in時呈現「設計/項目」。Rails 3.1故障與設計插件
新增: 的routes.rb:
devise_for :users
get "site/about"
get "site/contact"
resources :items
root :to => "items#index"
你可以發佈你的config/routes.rb文件的內容嗎? – Tilo
你的'routes.rb'看起來像什麼? –
添加routes.rb – Sergey