Pass hash prameters in routes

Hi All,

Query:

I am having a link as

<%= link_to "link_name", :controller => "some_controller", :action => "some_action", :id => "some_id", :first_param => {:second_param => "some value"} %>

and in my routes.rb

map.connect '/some_name/:id' :controller => "some_controller", :action => "some_action"

Above code is giving me an url as

http://localhost:3000/some_name/some_id

my requirement is to construct the url as:

http://localhost:3000/some_name/some_id/&lt;the value inside params[:first_param][:second_params]>

Please help me out.

Thanks,

Saurabh