samson78
unread,Sep 8, 2008, 5:57:38 AM9/8/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ActiveScaffold : Ruby on Rails plugin
Well, I am not even sure if the title is correct. Anyway, here is my
problem:
I have an AS named hotels. It has a "has_and_belongs_many relation
with Areas. And Areas belongs_to Categories, (areas have category_id
as foreign key).
Now, I want to be able when I click edit on a hotel to be able to view
under the Areas portion of the update form the following:
1)Category ID 1 (a label, not a field) ---- dropdown menu with all
areas in category ID 1
2)Category ID 2 ---- dropdown menu with all areas in category ID 2
3)Category ID 3 ---- dropdown menu with all areas in category ID 3
And when I hit update, Hotel will be updated with all three areas.
I have reach only up to the point that I have to use a
_areas_form_column.html.erb to override the defaults. But could
someone please tell me what to actually put in the file?
Thanks in advance,
Kostas