1
컨트롤러에 대해 상속 된 리소스를 사용하고 있습니다. 그리고 지금은 모델이 있습니다레일 3의 inherited_resources가 'defaults'설정을 무시합니다.
class Sms < ActiveRecord::Base
end
을 그리고 난이 기본적으로 할 경우 내가 그것을 위해 컨트롤러를 원하는 :
class Admin::SmsesController < Admin::InheritedResources
defaults :resource_class => Sms,
:collection_name => 'smses',
:instance_name => 'sms'
end
을하지만 여전히 "SMSE"모델을 얻으려고 노력하는 이유는, 이해할 수 없다 :
NameError in Admin::SmsesController#index
uninitialized constant Smse
Pls help.