From: Austin Ziegler Date: 2005-10-24T22:39:48+09:00 Subject: Re: link_to problems On 10/24/05, sourj wrote: > Hi all, > > I currently have an action in a controller that accepts input from a > form and it works fine. It recieves the data in a hash and uses that > well. > > I now on another page want to submit data to that controller/action and > i cant seem to figure out how to encode the hash. It throws a wobbly on > the brackets and also i have tried {:search => {:searchterm}}. No joy. > > Any ideas or suggestions welcome.. > > link_to eachtagobject.tag , :controller=>"portal", :action => > "search_general",:search[:searchterm] => eachtagobject.tag > > I could work around it by duplicating code and altering the > functionality slightly but that goes against the DRY principle. There > has to be a way. It's best if you check out the lists at http://lists.rubyonrails.org/mailman/listinfo for this sort of request. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca