Howto pass hashes in params?

Hello,

i try to pass a hash in params.

h = Hash.new

[...]

<%= link_to 'next',:url => {:controller => 'myController', :action => 'myAction', :h => h} %>

The myController-controller:

  def myController     @h = params[:h]   end

But it doesn't work like this. Can someone give me a solution. Is it even possible to pass hashes in params?

regards

James Byrne wrote:

In a Controller:

  params[:myhash] => { :aa => 'hashaa', :bb => 'hashbb' }

That should be:

   params[:myhash] = { :aa => 'hashaa', :bb => 'hashbb' }