The `hash[i]` part is actually not very clear, so those values could be in variables instead:

```ruby
param_hash = params[:content].inject({}) do |memo, hash|
  content_type, content_attributes = hash
  memo[content_type] = content_attributes[:value]
  memo
```