Redirect_to header: how to access location?

Hi,

If my controller sends a redirect_to as a response, where in the
response header is the Location? I would like to access this location
with JavaScript but don’t know how to access it. I can’t find any docs
on how Rails sets up these headers.

Thanks,
Peter

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs