Finally, I just replaced
redirect_to(:controller => 'jobs', :action => 'index')
with this:
render :js => "window.location = '/jobs/index'"
and it works fine!
More Related Contents:
- jQuery post to Rails
- Rails 2 to Rails 3 : using link_to instead of link_to_remote (including remote and update)
- How can I rename a database column in a Ruby on Rails migration?
- How to get a random number in Ruby
- Why do routes with a dot in a parameter fail to match?
- Rails 3: “field-with-errors” wrapper changes the page appearance. How to avoid this?
- Heroku push rejected, no Cedar-supported app detected
- When to use a “has_many :through” relation in Rails?
- Ruby on Rails 3: Streaming data through Rails to client
- rake db:schema:load vs. migrations
- ActiveRecord Find By Year, Day or Month on a Date field
- Rails 3 SQLite3 Boolean false
- What is the replacement for ActionController::Base.relative_url_root?
- Rails 3 UTF-8 query string showing up in URL?
- f.error_messages in Rails 3.0
- Rails 3.1 and Image Assets
- Convert UTC to local time in Rails 3
- Scope with join on :has_many :through association
- What does do in rails erb?
- Counter Cache for a column with conditions?
- Rails form_for :remote=>true is not calling js method
- Remote mysql database on Heroku app
- How to add bootstrap modal with link_to so the link content open in modal ?
- How to implement bulk insert in Rails 3
- Index on multiple columns in Ruby on Rails
- Ruby on rails 4 app does not work in iframe
- Why is Rspec saying “Failure/Error: Unable to find matching line from backtrace”?
- Rails 3.1 include_root_in_json
- Rails: Order with nulls last
- Why should we avoid using class variables @@ in rails?