認証にデバイスを使用していますが、今のところ、自動的にログインするユーザーをサインアップできます。
ただし、デバイスはパスを認識しませんlocalhost:3000/users/sign_out
エラーが発生します
No route matches [GET] "/users/sign_out"
私のルートには、ユーザー用のデバイスを生成したため、devise_for :users ステートメントがあります。
私は自分のユーザーモデルにもうまく設定されています.user.rbは次のようになります
class User < ActiveRecord::Base
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
attr_accessible :email, :password, :password_confirmation, :remember_me
end
私のレーキルートは以下を示しています
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
私のURLパスが認識されない理由を誰でも知っています