我的路由文件如下:
devise_for :admins
mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
我有一个管理模型如下:
class Admin < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :confirmable,
# :lockable, :timeoutable and :omniauthable
devise :database_authenticatable,
:recoverable, :rememberable, :trackable, :validatable
end
管理员登录后路由错误
http://localhost:3000/admin/s/sign_in
我收到以下错误消息:
Model 'S' could not be found
我该如何修复这条路线?
谢谢