TableSort JQuery not working with dynamic Rails Table

Dear All,
I am trying to use Table sort Jquery plugin to sort my table
Rails application by clicking Table header. But it is not working.I
<%= javascript_include_tag ‘jquery.js’%>
<%= javascript_include_tag ‘jquery.tablesorter.js’%> in my layout…

Here is my Code,

Listing books

<% @books.each do |book| %>
<% end %>
Title Author
<%=h book.title %> <%=h %>

<%= link_to 'New book', new_book_path %>

Help me pals…

Raghavendiran J M

Move outside loop, and then check.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs