index action w/ post method

Discussion in 'Ruby' started by Grayson Piercee, Feb 17, 2008.

  1. 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
    --
    Posted via http://www.ruby-forum.com/.
     
    Grayson Piercee, Feb 17, 2008
    #1
    1. Advertising

  2. Grayson Piercee

    Tim Hunter Guest

    Tim Hunter, Feb 17, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joeyej
    Replies:
    0
    Views:
    8,089
    Joeyej
    Jun 4, 2004
  2. Joe Bloggs
    Replies:
    1
    Views:
    924
    Sudsy
    Aug 3, 2003
  3. rjweytens
    Replies:
    6
    Views:
    16,253
    rjweytens
    Jun 25, 2004
  4. runescience

    Struts mapping action to action???

    runescience, Feb 6, 2006, in forum: Java
    Replies:
    3
    Views:
    1,915
    runescience
    Feb 7, 2006
  5. Tomasz Chmielewski

    sorting index-15, index-9, index-110 "the human way"?

    Tomasz Chmielewski, Mar 4, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    323
    Tomasz Chmielewski
    Mar 4, 2008
Loading...

Share This Page