# Rails Metal POST parameters

**URL:** <https://www.ruby-forum.com/t/rails-metal-post-parameters/173823>\
**Category:** Rails\
**Created:** [August 15, 2009, 11:36pm UTC](https://www.ruby-forum.com/t/rails-metal-post-parameters/173823 "2009-08-15T23:36:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alistair\_Holt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@Alistair\_Holt](https://www.ruby-forum.com/u/Alistair_Holt)\
**Post date:** [August 15, 2009, 11:36pm UTC](https://www.ruby-forum.com/t/rails-metal-post-parameters/173823/1 "2009-08-15T23:36:50Z")

</div>

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](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
