user19230
user19230

Reputation: 219

Redirect_to claims to work, but doesn't actually happen in the browser

Here is the Controller code where I call the redirect:

def helpful
  flash[:notice] = I18n.t(:thanks_for_feedback)
  redirect_to :back
end

The log claims:

Redirected to http://localhost:3000/p/anime/2?page=1
Completed 302 Found in 3147.7ms (Searchkick: 857.1ms)

But, nothing actually happens in the browser (Chrome, if it matters).

Upvotes: 1

Views: 31

Answers (1)

Rodrigo
Rodrigo

Reputation: 4802

Probably you're using an AJAX request.

If it is the case, take a look: Rails 3: How to "redirect_to" in Ajax call?

Upvotes: 1

Related Questions