Hi,

I'm having trouble when using Rack::Request in Rails Metal. For some
reason #params isn't getting filled.

I'm calling the Metal action using:

curl -d "foo=bar" http://domain.local/metaltest

And the Metal action contains the following code in (some code omitted
for brevity):

def self.call(env)
  ...
  request = Rack::Request.new(env)
  request.params # This is empty for some reason
  ...
end

If I output request.body.read for debugging I see "foo=bar" but for
some reason request.params isn't getting filled with these parameters
and is just an empty hash.

Anyone have any ideas?

Thanks
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to