javascript_include_tag in Rails

December 14, 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

Previous
Enjoying The New Teas
Enjoying The New Teas

I'm really starting to enjoy the selection of green teas in the office. I especially enjoy the ones with.....

Next
iPhone-Optimized Webapp
iPhone-Optimized Webapp

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

×

Subscribe to our Newsletter

!
Thank you!
Error - something went wrong!