エラーが発生します:
NoMethodError in Devise/registrations#new
undefined method 'user_registration_path'
この行で:
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
これは私のルートです:
devise_for :user, :controllers => { :registrations => "devise/registrations" }, :skip => [:registrations, :sessions] do
# devise/registrations
get 'signup' => 'devise/registrations#new', :as => :new_user_registration
post 'signup' => 'devise/registrations#create', :as => :custom_user_registration
end
レーキ ルート:
new_user_registration GET /signup(.:format) devise/registrations#new
custom_user_registration POST /signup(.:format) devise/registrations#create
user_registration_path
エラーが発生するのはなぜですか?