I thinking I need/want a polymorphic association but am unsure how to make it work properly in Hobo or even if it's supported at all.
I am trying to add reporting to an app. I using Jasper Reports IReports and have a manually setup report working fine. Now I want to try to expand it to work across the site. I know it won't be able to be totaly app driven and I'll need to do some manual coding work for each report but I'm trying to limit the amount of hard coding as much as possible. Now for each report to run it needs an XML file generated at run time. This will have to be coded via an action on the appropriate controller and an associated .rxml file to format the xml file. I don't see a way around this part being done manually. At least no easily. However once that is done all that is needed to run the report is to have the compiled report generated from IReport uploaded and a bit of additional info stored about each report. All this could be stored in a Report model and a report controller in the admin sub site. It's associating the report to the model it reporting on that I think I need to setup a polymorphic association to each of the models I want to report on. I can then list a models reports in a side bar via this association. I setup the polymorphic association with a single model to start. The migration ran fine but when I got to the new page for a report I get the following error. Showing *controller: admin/reports; dryml-tag: new-page* where line *#1* raised: wrong model name: "active_record/base" (extracted from translation key: "active_record/base.messages.none"). You might want to use the translate/t tag/method instead. -- 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/-/fZFanavaWY8J. 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.
