Forum: Ruby on Rails Call an action via another action

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
An (Guest)
on 2008-11-24 19:41
(Received via mailing list)
Hi everyone,
                 I have a list of Items that I display in the index
action (it's a complicate index, involving ferret, query building and
so on, not only a Items.find(:all)).
Now I've written a bulk_edit action that edits(deletes, tags etc.) the
items checked.
The bulk_edit is called through an ajax call.

What I want to achieve is that after the bulk_edit action it's
performed the index action again (so the results are updated).

I have tried it using the redirect_to method, but even if the index
action has a "repond to js" part, the html part is fired (looks like
redirecting the action it doesn't recognize that the original one was
a js request).

But after all do you have  any advice on the best practice to achieve

This topic is locked and can not be replied to.