I have read the arguments for and against CTI and STI.  There are strong 
feelings in both camps.  It almost strikes me as one of those "religion and 
politics" type topics.

Putting that aside, I wanted to see if I could get CTI (using CITIER) to 
work with hobo (if for no other reason than to see if it was possible), and 
I am happy to report that it does work!

Here is the quick scoop

My Classes

Asset < ActiveRecord::Base
Crop < Asset
Acreage < Asset
Machine < Asset

Asset is a model only because I don't need to interact with it.  The other 
classes have a model and controller.  Hobo does not see the child classes 
and create navigation tabs for them, but manually creating a link for them 
(localhost:3000/crops) works.  A single form is displayed that contains all 
of the attributes of both Asset and Crop.  All CRUD functions work properly. 
 Adding association relationships also work as expected.

If you are interested in hearing more about it or think that a recipe would 
be of value to the community in general, I would be glad to do a detailed 
write-up.

Regards,

Tyler

p.s.  Though it doesn't happy automatically, a little tweaking to the models 
makes them work with the hobo migration generator (tweaks have to be done 
and undone each time I want to run a new migration, but it only takes a few 
minutes.)



-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/0_mZfqGUOt4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to