index action w/ post method

G

Grayson Piercee

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top