Ed-Triplett/ADIMO — pull request #2 by erochest (2011-11-16 19:43:49+00:00)
Title: Working through active scaffold problems.

Hi Ed,

I've started seeing if we can get you a little further down the road. Like we talked about, there are some issues with the relationships (the scaffold config for sites lists military_order, patrons, events, and notes, but the model doesn't have thouse fields).

Right now, you can hit save, but it dies trying to save the buildings with this error message:

```
Started PUT "/sites/1?utf8=%E2%9C%93" for 127.0.0.1 at 2011-11-16 13:46:35 -0500
Processing by SitesController#update as JS
Parameters: {"utf8"=>"✓", "authenticity_token"=>"dvDC4vYBCWYdnSV6VHF7DFnpAjaDwZkCNwcB6UUpoos=", "record"=>{"name"=>"Area 51", "principality"=>"Nevada", "buildings"=>{"1321469179807"=>{"name"=>"UFO", "latitude"=>"13", "longitude"=>"14", "topography"=>"SSW", "note"=>""}}}, "commit"=>"Update", "id"=>"1"}
Site Load (0.1ms) SELECT "sites".* FROM "sites" WHERE "sites"."id" = ? LIMIT 1 [["id", "1"]]
Completed 500 Internal Server Error in 53ms

NameError (uninitialized constant Buildings):
```

Eric