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

Biography

More Content by Pivotal Labs
Previous
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...

Next
iPhone-Optimized Webapp
iPhone-Optimized Webapp

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

Enter curious. Exit smarter.

Learn More