On Jan 4, 1:16 pm, Xornor <pe...@pyoria.fi> wrote:
> class ApplicationController < ActionController::Base
> after_filter :customheaders
>
> private
>
> def customheaders
> response.headers["Test header title"]="Test header value"
> end
> end
That looks like it should work (I don't think that an after filter is
'too late' to set headers). How are you testing that the headers
aren't there?
Fred
--
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