Displaying 1 result from an estimated 1 matches for "order_dir".
Did you mean:
folder_dir
2005 Nov 19
1
link_to weirdness
Hi,
I''ve got a page running at say http://example.com:3000/admin/players
Then I''ve this bit of code to generate a URL like:
http://example.com:3000/admin/players?order_col=fname&order_dir=desc
<%=link_to col[:label], :overwrite_params => {
:order_col => col[:field],
:order_dir => @order_dir == ''asc'' ? ''desc'' : ''asc'' }%>
But instead it renders:
http://example.com:3000/admin/admin/players?order_col=fname&order...