title: Rails form_for in each row of a table (with jQuery datatable) has Routing Error: No route matches [POST]
body: <p>The case is I want to have a table, each row of which is a table to UPDATE an individual record, not complex stuff. Here's the code:</p>
  
  <pre><code>%table.table.datatable
    %thead
      %tr
        %th Post ID
        %th Name
        %th Title
        %th
    %tbody
      -if @posts.present?
        - @posts.each do |post|
          %tr
            = simple_form_for post, url: admin_post_path(post), method: :put do |f|
              %td
                = post.id
              %td
                = post.author.name
              %td
                = f.input :title, label: false, input_html: {class: 'input-medium'}
              %td
                = f.submit 'Update', class: 'btn btn-success'
  </code></pre>
  
  <p>Looks simple enough, but it doesn't work with error:</p>
  
  <pre><code>Routing Error: No route matches [POST]
  </code></pre>
  
  <p>However this works by removing jQuery datatable:</p>
  
  <pre><code>-#from %table.table.datatable    
  %table.table 
  </code></pre>
  
  <p>Here's part of my routes.rb:</p>
  
  <pre><code>namespace :admin, :path =&gt; 'welab' do
    ...
    resources :posts
    ...
  end
  </code></pre>
  
  <p>The solution could be a workaround for updating 'title'. However can't I have jQuery datatable in this case then?</p>