On 9/6/06, Ricardo Acras
<ricardo.acras-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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-WlbSPrj98RBeoWH0uzbU5w@public.gmane.org
Sincerely,
Tom Lieber
http://AllTom.com/
http://GadgetLife.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---