[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

index action w/ post method

Grayson Piercee

2/17/2008 2:14:00 AM

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-....

1 Answer

Tim Hunter

2/17/2008 2:33:00 AM

0

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:
http://groups.google.com/group/rubyon...