# Call an action via another action

**URL:** <https://www.ruby-forum.com/t/call-an-action-via-another-action/154033>\
**Category:** Rails\
**Created:** [November 24, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/call-an-action-via-another-action/154033 "2008-11-24T18:41:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnAnAn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@AnAnAn](https://www.ruby-forum.com/u/AnAnAn)\
**Post date:** [November 24, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/call-an-action-via-another-action/154033/1 "2008-11-24T18:41:39Z")

</div>

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!
