Hi folks
i have 3 simple models
class Region < ActiveRecord::Base
has_many :cities
has_many :schools, :through => :cities
end
class City < ActiveRecord::Base
belongs_to :region
has_many :schools
end
class School < ActiveRecord::Base
belongs_to :city
end
1. How to define SchoolsController activescaffold config to add
region column?
2. at SchoolsController is it possible have all columns (region
and
city) add an school and choose region first and scoped city
(after changed region)
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.