class Rh::PaymentTypesController < InheritedResources::Base
authorize_resource
end
My model:
class Rh::PaymentType < ActiveRecord::Base
end
Without authorize_resource, this work fine, with i got this error:
Expected /Users/diegorv/Documents/rails/work/Phenix_ERP/app/models/rh/payment_type.rb to define PaymentType
Hi, this is my scenario.
My controller:
class Rh::PaymentTypesController < InheritedResources::Base authorize_resource end
My model:
class Rh::PaymentType < ActiveRecord::Base end
Without authorize_resource, this work fine, with i got this error: Expected /Users/diegorv/Documents/rails/work/Phenix_ERP/app/models/rh/payment_type.rb to define PaymentType
Buts the right is Rh::PaymentType