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/<the value inside
params[:first_param][:second_params]>
Please help me out.
Thanks,
Saurabh
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.