New to RoR, I'm using the Carmen gem, running a rake gives me the error:
Failed: NoMethodError: undefined method `excluded_states=' for Carmen:Module
but the gem includes the attr_accessor method with :excluded_states in the args.
Doesn't the attr_accessor method automagically create the `excluded_states=' setter method?
You can't call
attr_accessorwithin a module, that's something that should only work within a class. What you want instead is themattr_accessorvariant:It's also possible it is defined correctly but you're referencing it incorrectly, as in you should be calling that on an instance of something.