So, I have a model called Organization. Chapter and Committee inherit
from it.
I’m letting the user create new Organizations. So, they were able to
select whether or not the Organization was a Chapter or Committee.
When I tried to do stuff like <%= radio_button ‘organization’, 'type
%>, I got a ton of warning messages about how I should be using #class
and not #type. And doing tests on the type field of an organization
also reported a bunch of warnings.
I was able to fix the whole thing by using a ‘kind’ column (instead of
‘type’) in the organizations table and using that as the inheritance
column, but it seems weird that I had to do stuff like that.
Any thoughts?