I’ve found in my very limited use so far that when using it with STI at
least the rendering of partials is not very well supported yet.
I have a DataTransfer model, that has DataImport and DataExport
subclassing
it. I also have mapped resources to a DataTransfers controller.
When I go to the index of the data transfers controller, I have the
following
<%= render :partial => @data_transfers %>
This then wants to render a partial
data_imports/_data_import
or
data_exports/_data_export
whichever AR Class was found first. This partial is then used for the
remainder of the collection in @data_transfers. The result being that
Imports are rendered as exports or vice versa.
It seems that when the first AR objects’ class is determined, that
partial
is identified for that object is used for the entire collection.
Is there something that I’m missing or should I stay away from STI for
the
moment with this plugin?
Cheers
Daniel