I have an incoming POST to a typical Rails /:controller/:action url.
That post has one value, not a name-value pair. So, Rail's params has
that data as a key (along with the other stuff Rails adds to params).
Now, in my current fiddling, it can be extracted as params.keys[0] --
but I don't think I can count on that position as the params hash is,
well, a hash.
I have an incoming POST to a typical Rails /:controller/:action url.
That post has one value, not a name-value pair. So, Rail's params has
that data as a key (along with the other stuff Rails adds to params).
Now, in my current fiddling, it can be extracted as params.keys[0] --
but I don't think I can count on that position as the params hash is,
well, a hash.
the 1 gets mapped to :id automatically. That was my reasoning anyway, and so far it has worked correctly. I don't know if that will work for you or not. And I'm not using any special/custom routing. Just the plain stuff that Rails 1.2.3 defines.