mliebelt/rails-generator-scaffold_hmt — Issue #1: Join Tabel and model
Author: mskraddoc
Created: 2011-10-12 14:14:02+00:00
State: open

Excellent. Looks good.

My guess is you will add functionality for the join table and model next.

In general, it seems to me that your usage will have to
A) include a model3 at the command line for the join table and model or
B) Make the join table and model name from model1 and model2 <<< best option
C) Use a default join model and table name

Also,

Model3 should be created in the migration file as well. No?

And,

The association for for model3.rb should look something like:

class Model3< ActiveRecord::Base
belongs_to :model1
belongs_to :model2
end

Thanks so much!!!

Perry