<%= form_tag invoices_path, :class => "form-horizontal", :method => :get do %>
Please enter invoice id
<%= text_field_tag 'invoice_id', nil, :class => "input-xlarge", :id => "invoice_id", :placeholder => "InvoiceId, InvoiceNumber" %>
<%= button_tag "Search", :class =>"btn btn-primary" %>
<% end %>
Invoice ID Invoice number Date Amount Balance
Loading data from server
<%= javascript_tag do %> $(document).ready(function() { $('#invoices-table').dataTable({ "sDom": "<'row-fluid'<'span6'l><'span6'>r>t<'row-fluid'<'span6'i><'span6'p>>", "sPaginationType": "bootstrap", "bProcessing": true, "bServerSide": true, "sAjaxSource": "<%= invoices_pagination_path :format => :json %>" }); }); <% end %>