Call an action via another action

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
that?

Thank!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs