ActiveScaffold & Streamlined Woes
Posted by mhagedorn on October 8th, 2007 filed in RailsFound an interesting gotcha while trying out some of the new “User Interface in a Can” frameworks. If you use the new hasmany :through style declaration (rather than the old way hasandbelongsto_many) for modeling your many to many relationships in ActiveRecord, then that relationship cannot be editable in these frameworks. What happens is that a relationship is inferred, but since that relationship is read-only, a gui is generated which cannot edit that relationship. Which in non-geek speak means WORTHLESS. Since I was on a tight time budget on a project, I had to do something, so I am in the process of converting back to HABTM, which both frameworks happily use. I haven’t had a moment to grok why this is. But something about the existence of the :through class messes up introspecting the relationships. I am hoping this isn’t too much of a limitation, because I like overall the GUI’s that are produced. Furthermore in my work at least I haven’t had to utilize the power of a full-fledged join model in the middle, so I am hoping that this wont mess me up too much.
Has anyone else run into this?
One Response to “ActiveScaffold & Streamlined Woes”
Leave a Comment
You must be logged in to post a comment.
October 20th, 2007 at 9:56 am
We are using this to power the admin on RDB