Closed rrmait0 closed 11 years ago
@cokernel Yeah, it's not fully complete since I'm not sure how to do that part. It's similar to source where one should be able to look up the information in a table and add the information if it does not exist.
Well, this pull request is fine as far as it goes. I can merge this into master and just keep #51 open. But I recommend finishing #51 before picking up a new feature.
I think you will want to use find_or_create_by_name
or so for creating new spatial coverage fields.
I would also recommend having SpatialCoverages be owned by Repositories (to be assigned automatically to the Repository containing the Record) so that different repositories can have their own sets of coordinates.
Some examples of find_or_create_by_name would be helpful. I did find this one:
I will check the Ruby Doc as well.
@rrmait0, I've merged master into this branch and fixed some typos (one of which I made during the merge).
This isn't ready to be merged into master, though. I am unable to add spatial coverage fields to a record from the record edit page.