Başarılı bir kayıttan sonra onay sayfasını değiştirmek için bu adımı takip ediyorum. diyor gibiRaylar 4 + Devise: Geçersiz yol adı, zaten kullanımda
ben her şeyi ama bu hatayı alıyorum: Ben wiki Raylar 4 ile hazırlamak kullanmak için güncelleştirilmiş değil sanırım, ama ben etrafında yeterli bulmuyorum
in `add_route': Invalid route name, already in use: 'new_user_session' (ArgumentError)
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here:
http://guides.rubyonrails.org/routing.html#restricting-the-routes-created
hatayı düzeltmek için bilgi.
devise_for :users, :controllers => { :registrations => "registrations" }
herhangi bir öneri: hata veriyor
hattı (routes.rb) yanındadır?
Teşekkürler.
DÜZENLEME - ilkini kaldırmak -
registrations_controller.rb
class RegistrationsController < Devise::RegistrationsController
protected
def after_inactive_sign_up_path_for(resource)
'/sign_up/inactive'
end
end
routes.rb
root :to => 'home#index'
devise_for :users
resources :users
devise_for :users, :controllers => { :registrations => "registrations" }
'Tam olarak ne yazıyor' demediğini söyleyemem. Lütfen kodunuzu gösteriniz. – sevenseacat
Zaten halihazırda Devise modülü –
'da tanımlanmış bir simmilar kopyası var. Viki'nin dediğine göre, ana yazıyı dosyalarımın içeriği ile düzenledim. –