I’m a rails noob and I’ve been playing around with creating an app
that will display services provided at various schools.
At first, I had a schools table, then I decided that I wanted an
agencies table as well. They share many attributes (address, etc) and
differ only in a few (level, e.g., elementary, middle, etc). So I
decided I would use organizations as my base. I have a “type” column.
I started by generating a scaffold: Organization Admin.
In my organization model, I added School < Organization and Agency <
That gives me generic organizations admin stuff, but there’s no “type”
field in the new organization form.
I tried generating a scaffold for School Admin, but since there’s no
table for schools, rails didn’t like that.
So if I want create a new school entry, how should I go about that?