> To get an array of ordered keys for the POSTed keys/vals, you could do
> something like:
>
>   ...
>   if request.post?
>     ordered_keys = request.raw_post.split('&').collect {|k_v|
> CGI::unescape(k_v.split('=').first.to_s) }
>   ...

Thanks.  That worked great for parsing the raw post data (and it took
me one step closer to final success).  The remaining problem is that,
no matter how one slices it, I really need to get the data into an
ordered hash so that I can use the post_form method of Net::HTTP to
return it.  Following on with your suggestion, I thought something
like this would work:

    ordered_params=ActiveSupport::OrderedHash.new
    ordered_keys.each do |key|
      ordered_params[key]=params[key]
    end

The problem is that the ordered_params hash does not seem to be
ordered.  Any thoughts on how I am going to get over this hurdle?

Thanks again for all the help.

            ... doug
-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to