# Index action w/ post method

**URL:** <https://www.ruby-forum.com/t/index-action-w-post-method/129339>\
**Category:** Ruby\
**Created:** [February 17, 2008, 3:14am UTC](https://www.ruby-forum.com/t/index-action-w-post-method/129339 "2008-02-17T03:14:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grayson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@grayson](https://www.ruby-forum.com/u/grayson)\
**Post date:** [February 17, 2008, 3:14am UTC](https://www.ruby-forum.com/t/index-action-w-post-method/129339/1 "2008-02-17T03:14:02Z")

</div>

I have a controller whose index method has lots of pull-downs for user  
selection of query options. When the user makes a selection, I’d like  
to post that back (preferably using remote as an AJAX call) but it needs  
to go back to index and not some other action. This is due to the way  
will\_pagination is set up in my app.

So I’m wondering if it’s possible to set up a route that allows a post  
to index (and not just a get). Currently when you do a post, it just  
assumes that you want to do a create action. My config is really basic  
right now

map.resources :item

Thanks,

GP

---

<div class="post-metadata">

**Author:** ![grayson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@grayson](https://www.ruby-forum.com/u/grayson)\
**Post date:** [February 17, 2008, 3:34am UTC](https://www.ruby-forum.com/t/index-action-w-post-method/129339/2 "2008-02-17T03:34:16Z")

</div>

Grayson P. wrote:

> I have a controller whose index method has lots of pull-downs for user

I bet you meant to post this on the Ruby On Rails mailing list:  
[http://groups.google.com/group/rubyonrails-talk](http://groups.google.com/group/rubyonrails-talk)
