documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

set JS content type in controller #83

Closed agibralter closed 13 years ago

agibralter commented 13 years ago

Is this a safe patch to just throw in?

jashkenas commented 13 years ago

When you call render :js => ... -- Rails should already be setting the content type to text/javascript correctly. Is that not happening for you? Have you change your default mime-type settings?

agibralter commented 13 years ago

Hmm really strange. Chrome was giving me a warning about .../assets/default.html.mustache not having the right mime type... but it seems to have gone away. Don't know what happened...