Thanks Fred,
I took your advice and added a theatre_id column to the Shows table.
Then I added the following callback to the Shows model, in order to
automatically update the :theatre_id column with the id of the
corresponding theatre in the Theatres table.
class Show < ActiveRecord::Base
bel
On 21 Feb 2009, at 13:22, Ad Richards wrote:
>
> Hi,
>
> I am a bit confused about managing the relationship between two of my
> tables:
>
> I have developed a script using scRUBYt that scrapes data from a
> website
> and dumps the following four fields into my Shows table:
>
> class CreateSho
2 matches
Mail list logo