Here’s a simple one I think.
Using link_to, how do you get multiple fields in the query string?
link_to(“anchor text”, {:action=>“neat_page”, :field_1=>“value 1”,
:field_2=>“value 2”})
-this only gets you field_1 in the query string
as does this -
link_to(“anchor text”, :action=>“neat_page”, :field_1=>“value 1”,
:field_2=>“value 2”)
link_to(“anchor text”, :options=>{:action=>“neat_page”, :field_1=>“value
1”,
:field_2=>“value 2”})
- this gets you a querystring of
"options=actionneat_pagefield_1value+1field_2=value+2
matt