javascript_include_tag in Rails

December 13, 2007 Pivotal Labs

Want to avoid feeling like a chump and spending countless hours troubleshooting a crazily-stupid-simple problem?

When you enter a .js in your javascripts directory and include it using a javascript_include_tag, take the <script> tags off the front and back.

You probably knew that already. Why didn’t you tell me sooner?

About the Author


Agile…but not in the wrists
Agile…but not in the wrists

So many of my colleagues have some degree of trouble with their hands/wrists/arms. It's a serious occupatio...

iPhone-Optimized Webapp
iPhone-Optimized Webapp

iPhone on Rails - Creating an iPhone optimised version of your Rails site using iUI and Rails 22