I have a delete link that makes a remote call:
<%= link_to image_tag(\"trash.png\"), [current_user, bookcase], method: :delete, :remote => true, confi
I am pretty sure this code will work.
render :js => "window.location = '/jobs/index'
You can use this code in action /controller_name/action name/