Posted By

tonic on 05/27/08


Tagged

header rails type content rails2


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

aka
webstic


Header content type in rails 2


 / Published in: Rails
 

  1. before_filter :header_javascript
  2.  
  3. def header_javascript
  4. response.headers['Content-type'] = 'text/javascript; charset=utf-8'
  5. end

Report this snippet  

You need to login to post a comment.