thanks, Tom

of course it is :)


On Feb 25, 12:23 pm, Tom Locke <[email protected]> wrote:
> Hi Folks
>
> Am too busy right now to pay much attention to the group, but here's a  
> quick input-many example that takes advantage of a change that I just  
> pushed (input-many is now polymorphic).
>
> Hope it's useful : )
>
> Requires edge Hobo of course.
>
> Tom
>
> class Book < ActiveRecord::Base
>
>    hobo_model
>
>    fields do
>      name :string
>      timestamps
>    end
>
>    has_many :chapters, :accessible => true, :dependent => :destroy
>
>    ...
>
> end
>
> class Chapter < ActiveRecord::Base
>
>    hobo_model
>
>    fields do
>      name :string
>      timestamps
>    end
>
>    belongs_to :book
>
>    ...
>
> end
>
> In application.dryml
>
> <def tag="input-many" for="Chapter">
>    <input-many><input:name/></input-many>
> </def>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
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