#527 open
Betelgeuse

Add support for rails 2.3 nested models to rapid

Reported by Betelgeuse | November 5th, 2009 @ 12:21 PM | in Beyond Hobo 1.0

http://hobocentral.net/blog/2009/04/27/support-for-rails-23/

It would be really great if using accepts_nested_models you could have inline nested models for arbitrary forms using rails features.

Comments and changes to this ticket

  • Bryan Larsen

    Bryan Larsen November 5th, 2009 @ 11:19 PM

    Is there something that you cannot do with the Hobo nested model support?

  • Betelgeuse

    Betelgeuse November 5th, 2009 @ 11:33 PM

    My observations after I made a parent model (a belongs_to) show up on a form

    • I think hobo requires you to pass every attribute in the Hash even if you just want to update a single one
    • Rails 2.3 format makes it easy to update just a single attribute
    • Using the rails 2.3 way of passing attributes around makes it faster to learn hobo as reading logs is familiar
    • I had to manually create the dryml for it, automation is nice

    Of course the current Hobo way of doing things can be made to work but in the long term should be better to use the
    rails 2.3 format.

  • Betelgeuse

    Betelgeuse November 5th, 2009 @ 11:35 PM

    In the end I got the code to behave the way I wanted by writing a converter in front of attributes= that converted the hobo format to rails 2.3 format.

  • Bryan Larsen

    Bryan Larsen November 6th, 2009 @ 02:00 PM

    • State changed from “new” to “open”
    • Milestone set to Beyond Hobo 1.0

    Hobo does not require every attribute to be in the hash. The only attribute required is the id, so it can tell the difference between a new object and an edit of an old object.

    As far as reading the logs, I find it easier to read the Hobo format, because that's what I'm used to. :)

    Most of the work of converting to the 2.3 format will be in the taglibs.

  • Bryan Larsen

    Bryan Larsen November 17th, 2009 @ 04:56 PM

    • Tag changed from 2.3, dryml, dryml-generator, forms, models, rapid to 2.3, dryml, dryml-generator, enhancement, forms, models, rapid

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages