I made a route match ''/:tasks(/:new(/:pid))'', :controller => :tasks, :action => :new and can successfully open link http://localhost:3000/tasks/new/99 When i generate link like <%= link_to "", {:controller => "tasks", :action => "new", :pid => project.id } %> it makes link like http://localhost:3000/tasks/new?pid=99 How can i make link like http://localhost:3000/tasks/new/99 ? -- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/qD8QKoAqvWUJ. For more options, visit https://groups.google.com/groups/opt_out.