Ive been trying to to do the following and cant figure out how…
On my page some output is generated within a helper - an array. The
content of the array is listed on the page, but I want to be able to
click on a button at the bottom of the page to take the array and
transfer it’s content to another method and view, instead of having to
re-generate it from scratch. Now, both link_to and button_to do not seem
to accept an array as option, just integers and strings (like “link_to
‘next_page’, :action => ‘some_method’, :array => @some_array”).
And else, how to I process the array in the new method. SO far I only
now the params[:array] option - is there perhaps anything else? Like
@array = :array…
Any advice on how to do this in practice would be greatly appreciated…
maybe I am just being too tired now, but I really cant figure it out :_.