# Passing a hash to a GET request

**URL:** <https://www.ruby-forum.com/t/passing-a-hash-to-a-get-request/103920>\
**Category:** Rails\
**Created:** [May 11, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/passing-a-hash-to-a-get-request/103920 "2007-05-11T17:44:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/65b543/32.png) [@nuno](https://www.ruby-forum.com/u/nuno)\
**Post date:** [May 11, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/passing-a-hash-to-a-get-request/103920/1 "2007-05-11T17:44:15Z")

</div>

Hello, I’m trying to  
link\_to(‘Edit’, :action =\> ‘edit’, :topic =\> {:parent\_id =\> topic.id})

But unfortunately, :topic =\> {:parent\_id =\> topic.id} produces  
‘/edit?topic=parent\_id2’

Is there a solution of have GET params organized like POST params (eg  
params[:topic][:title])

Thanks
