RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Access Request Headers in a Rails Controller

How do you access request AND response headers in a rails controller? What does the headers method refer to? Let’s dive into the Rails source code to investigate a failing rspec request spec.

https://kevinjmurphy.com/posts/access-request-headers-in-rails-controller/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in