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!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---