Link_to problems

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.

all the best

Surj.

It's best if you check out the lists at
http://lists.rubyonrails.org/mailman/listinfo for this sort of
request.

-austin

ยทยทยท

On 10/24/05, sourj <s@ss.com> <surj.patel@gmail.com> 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.

--
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca