josevalim/inherited_resources — Issue #210: Why inherited_resouces ignores 'defaults' setting
Author: Bazai
Created: 2012-02-20 15:41:13+00:00
State: open

I have model:

class Sms < ActiveRecord::Base
end

And i want controller for it, where i make defaults:

class Admin::SmsesController < Admin::InheritedResources
defaults :resource_class => Sms,
:collection_name => 'smses',
:instance_name => 'sms'
end

But it still trying to get "Smse" model:

NameError in Admin::SmsesController#index
uninitialized constant Smse
What's wrong?