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...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
index action w/ post method
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password