title: Ruby on Rails - passing locals to partial inside each loop (With Haml)
body: <p>i have an object array. i'm trying to loop through it and output results to a table. i want one of my table columns to be a rendered partial (form). but no matter in what row i submit it always sends me the locals of the last row output.</p>
  
  <p>Is this normal behavior of rails or am i doing something wrong? </p>
  
  <p>my view is : </p>
  
  <pre><code>%table.table.table-hover
  %thead
    %tr
      %th User id
      %th User email
      %th Account name
      %th Intercom Conversation
  %tbody
    - @users.each do |user|
      %tr
        %td= user.user_id
        %td= user.user_email
        %td= user.account_name
        %td
          - if user.intercom_conversation
            %h4= user.intercom_conversation
          = link_to('edit', '#', {class: 'edit'})
          .conversation_edit
            = render(partial: 'conversation_form', locals: {user_id: user.user_id, fault_id: @fault.fault_id})
  </code></pre>
  
  <p>my rendered partial is : </p>
  
  <pre><code>= form_tag('update_conversation', method: 'get')
  = hidden_field_tag(:fault_id, fault_id)
  = hidden_field_tag(:user_id, user_id)
  yes
  = radio_button_tag(:conversation, 0)
  no
  = radio_button_tag(:conversation, 1)
  ignored
  = radio_button_tag(:conversation, 2)
  = submit_tag('Change')
  </code></pre>
  
  <p>i guess i should say all rendering (in browser are correct and no error is raised)</p>
  
  <p>thanks in advance . </p>