Changing Scaffold

Hi,

I am starting a project in rails and I wish to change scaffolding.
I've already done some changes like prepare all texts for locale. Now
I am wishing to change the way it generates the _form partial. Could
someone give some guideline so I can study such thing?
I saw "template_for_inclusion" in form.rhtml but couldn't find out
how to change it.
Being more specific, I would like to change scaffold to create
lookup combo boxes to simple tables.

An example:

I have table countries and states. States has a country_id field When
I scaffold table states I would like it to generate a combo with
countries.

Thank you for your help.

I am starting a project in rails and I wish to change scaffolding.
I've already done some changes like prepare all texts for locale. Now
I am wishing to change the way it generates the _form partial. Could
someone give some guideline so I can study such thing?
I saw "template_for_inclusion" in form.rhtml but couldn't find out
how to change it.
Being more specific, I would like to change scaffold to create
lookup combo boxes to simple tables.

An example:

I have table countries and states. States has a country_id field When
I scaffold table states I would like it to generate a combo with
countries.

Thank you for your help.

If you use script/generate to generate the scaffolding for your
project, it outputs the code to your application directory, and you
can edit them there.

Ricardo Acras
ricardo@acras.net

Sincerely,

Tom Lieber
http://AllTom.com/
http://GadgetLife.org/