[OSM-dev] amf_controller
SteveC
steve at asklater.com
Mon Jan 21 11:03:45 GMT 2008
RIchard
Over the weekend I variously looked at amf_controller in an attempt to
move it to using all the rails objects.
The number one problem is that we have multipart keys in our database
and rails doesn't natively support that. That is, they key on the way
nodes table is id, sequence_id. Not just id. So, all the SQL you're
writing with joins, rails will magically do for you normally with
something like
Way.find(42, :include => :nodes)
But it fails because of the multipart keys.
There's a magic plugin that makes all of this go away but I need to
test it more to make sure it doesn't fuck up other bits of code. I'm
not online right now but it'll be in http://del.icio.us/SteveC/rails
+key or some such.
Second, what would be really nice is a description of the functions,
above each function (rdoc for bonus points) which lists what the input
is (with object types) and what the expected output is. I think this
will be a lot easier to do code against than reverse-engineering the
SQL and so on. I've looked at the wiki but the function descriptions
aren't complete enough (unless I've missed something) as above.
have fun,
SteveC | steve at asklater.com | http://www.asklater.com/steve/
More information about the dev
mailing list