Ruby on Rails Monday, November 22, 2010

Hello,

why it doesn't work for you? I think the most important is to really
pay attention to params hash can have a hash in it, so harder to find
if we make mistake.

http://guides.rubyonrails.org/action_controller_overview.html

Here the second part is your answer, and I think the examples are good
to understand how to override it totally if you wish.

If it has problems, please share it here,
thanks,
Zoltán

On nov. 21, 19:16, Shea Barton <li...@ruby-forum.com> wrote:
> Is there any way to completely override some / all of the headers that
> rails outputs by default?
>
> I would use response.headers["Set-Cookie"], etc, but as we all know,
> this doesn't work a lot of the time for headers which rails sets
> automatically.
>
> The reason I'm asking is I'm a HTTP proxy and in order to pass the
> headers (content-type, set-cookie), from the requested page from the
> proxy to the client, I need complete control over them.
>
> thanks
>
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment