Read about the `fields_for` helper on actionview and the
`accepts_nested_attributes_for` macro on activerecord to handle nested
forms (fields_for to create the form, accepts_nested_attributes_for so
activerecord handles the associated objects creation).
On Monday, September 16, 2019 at 4:31:29 PM UTC-4, Ariel Juodziukynas wrote:
>
> Personally, I would do this:
>
> auctions table
> (with the basic shared information of all auctions and an "auction type"))
>
> properties table
> property_name (like network, carrier, publisher, etc)
>
On Monday, September 16, 2019 at 4:31:29 PM UTC-4, Ariel Juodziukynas wrote:
>
> Personally, I would do this:
>
> auctions table
> (with the basic shared information of all auctions and an "auction type"))
>
> properties table
> property_name (like network, carrier, publisher, etc)
>
3 matches
Mail list logo