Remember that there are also other iterator functions than `each`.

`each` should be used when you have are doing a side-effect and NOT expecting any return value. In this case you are expecting a return value `param_hash`, so `each` is not the right iterator function for this case.

Instead, `inject` is the right one for this:

```ruby
param_hash = params[:content].inject({}) { |memo, hash| memo[hash[0]] = hash[1] ; return memo }
```