title: submit value of html table to variable in controller ruby
body: <p>I have a table in view: </p>
  
  <pre><code>#view
  &lt;%= form_tag save_table_path do %&gt;
      &lt;table&gt;                         
       &lt;% @channel_name_body.values.max_by(&amp;:size).size.times do |i| %&gt;
          &lt;tr class="border"&gt;
              &lt;% @channel_name_body.values.map { |a| a[i] }.each do |value| %&gt;
                &lt;td contenteditable class="border light_green"&gt;&lt;%= value %&gt;&lt;/td&gt;
              &lt;% end %&gt;
          &lt;/tr&gt;
        &lt;% end %&gt;
      &lt;/table&gt;
   &lt;%= submit_tag "save",:class =&gt; "btn btn-primary offset4" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I don't know what to do next to pass value of all cell in table to controller such as:</p>
  
  <pre><code>#controller
  def save_table
    @table=params[:table] #or @row1=params[:row1]... or @col1=params[:col1]....
  end
  </code></pre>
  
  <p>Edit: I found way to solve this problem, it must use js.<br>
  I don't want to use js, what about if I change to &lt;%= text_field_tag :cell, value %> how can I get value of all cell in table ?</p>