我知道以前有很多相同标题的问题,但我无法找到适合我情况的答案。
网址:http:// localhost:3000/user/register
错误:No route matches {:action=>"about", :controller=>"user"}
日志:
Processing by UserController#index as HTML
Rendered user/index.html.erb within layouts/application (12.0ms)
Completed 500 Internal Server Error in 82ms
ActionController::RoutingError (No route matches {:action=>"about", :controller=>"user"}):
app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__379156404_34959024'
我的路线:
Sample::Application.routes.draw do
root :to => "site#index"
get "site/index"
get "site/about"
get "site/help"
get "user/index"
get "user/register" => "user#register"
红宝石版本:ruby 1.9.3p125 (2012-02-16) [i386-mingw32]
导轨版本:Rails 3.2.11
请帮我解决这个路由问题。