我有这个路线文件
Qitch::Application.routes.draw do
devise_for :users, :controllers => {
:omniauth_callbacks => "users/omniauth_callbacks",
:registrations => "users/registrations",
:sessions => "users/sessions",
:passwords => "users/passwords"
}
devise_for :users
as :user do
get '/sign_up', :to => "users/registrations#new"
get "sign_out", :to => "users/sessions#destroy"
end
root :to => 'welcome#index'
end
当我在应用程序布局中单击此链接时
<a href="/users/sign_up">Sign-up Now, It's fast and free</a>
我有这个错误
Routing Error
No route matches {:controller=>"users/welcome"}
Try running rake routes for more information on available routes.
我不明白为什么会这样
任何帮助
谢谢