# Fixed: Re: Help: insert into multiple tables

**URL:** <https://www.ruby-forum.com/t/fixed-re-help-insert-into-multiple-tables/73173>\
**Category:** Rails\
**Created:** [October 22, 2006, 3:14pm UTC](https://www.ruby-forum.com/t/fixed-re-help-insert-into-multiple-tables/73173 "2006-10-22T15:14:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [October 22, 2006, 3:14pm UTC](https://www.ruby-forum.com/t/fixed-re-help-insert-into-multiple-tables/73173/1 "2006-10-22T15:14:45Z")

</div>

I got this to work , although I think it’s a bit hacky.  
The big remaining question in my mind is, if this is a restful setup  
then  
should canindustry be a nested resource of canbackground ?

Stuart

On 10/22/06, Dark A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> class Canindustry \< ActiveRecord::Base  
> :name, { :prompt =\> true })%\> # gets inserted into canbackground  
> end  
> The candidate\_id will need to be inserted into the canindustry model. Not  
> sure if I need the canbackground\_id in the canindustry model.
> 
> ## TIA Stuart
> 
> [Dark ambient - Wikipedia](http://en.wikipedia.org/wiki/Dark_ambient)

–

> **[Dark ambient](https://en.wikipedia.org/wiki/Dark_ambient)**
>
> Dark ambient (referred to as ambient industrial especially in the 1980s) is a genre of post-industrial music that features an ominous, dark droning and often gloomy, monumental or catacombal atmosphere, partially with discordant overtones. It shows similarities with ambient music, a genre that has been cited as a main influence by many dark ambient artists, both conceptually and compositionally. Although mostly electronically generated, dark ambient also includes the sampling of hand-pla 
> The te...
