views:

31

answers:

1

Hi All,

Query:

I have a link like

<%= 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 a URL like

http://localhost:3000/some_name/some_id

my requirement is to construct the URL as:

http://localhost:3000/some_name/some_id/value_inside_params[:first_param][:second_param]

Please help me out.

Thanks,

Saurabh

A: 
John Topley
it is working for params[:other] but i want a url for params[:other][:first]