Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > index action w/ post method

Thread Tools

index action w/ post method

Grayson Piercee
Posts: n/a
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


Posted via

Reply With Quote
Tim Hunter
Posts: n/a
Grayson Piercee 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:

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sorting index-15, index-9, index-110 "the human way"? Tomasz Chmielewski Perl Misc 4 03-04-2008 05:01 PM
Struts mapping action to action??? runescience Java 3 02-07-2006 04:07 PM
Struts Forward to an Action from an to Action and URLs rjweytens Java 6 06-25-2004 01:49 PM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="" language="JavaScript"> Joeyej ASP .Net 0 06-04-2004 07:55 PM
Struts Static Action Form vs Dyanamic Action Form Joe Bloggs Java 1 08-03-2003 02:30 AM