Why doesn't Javascript sorttable work in Ruby application?
I have a HTML table in my /views/
file and want to sort some of the columns. I've downloaded "sorttable.js" into my public/javascript
folder and added the following in my file in views:
<script开发者_如何学C src="public/javascripts/sorttable.js"></script>
<table class="sortable">
Nothing is coming up. Any ideas why?
Try pointing the javascript to the proper folder: (you dont need to specify public/)
<script src="/javascripts/sorttable.js"></script>
<table class="sortable">
精彩评论