I have scaffolded a few screens for a website’s administration pages.
For example, right now I have (etc., etc.):
admin/companies
admin/regions
admin/countries
I am going back and editing the scaffolded screens.
I need to know how to add a dropdown list to the
admin\regions_form.html.erb page that would show the countries I have
added using admin/countries/new.
I am going back and editing the scaffolded screens.
I need to know how to add a dropdown list to the
admin\regions_form.html.erb page that would show the countries I have
added using admin/countries/new.
If your region belongs_to country, then you could do something like this
(inside a form_for for the region):
I am going back and editing the scaffolded screens.
I need to know how to add a dropdown list to the
admin\regions_form.html.erb page that would show the countries I have
added using admin/countries/new.
If your region belongs_to country, then you could do something like this
(inside a form_for for the region):