title: Rails 5 - render partial on conditional
body: <p><strong>Issue</strong> - Rails is not rendering my partial even though the conditional is true</p>
  
  <p><strong>Inspecting params returns the following:</strong></p>
  
  <p><code>Parameters: {"operating_system"=&gt;"Red Hat Linux 7"}</code></p>
  
  <p><strong>Method 1</strong> - Not Working</p>
  
  <pre><code># app/views/forms/_show.html.erb
  
  &lt;%= form_with model: @form, local: true, id: 'new_form' do |f| %&gt;
    &lt;% if params[:operating_system] == 'Red Hat Linux 7' %&gt;
      &lt;%= render 'section_two', f: f %&gt;
    &lt;% end %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p><strong>Method 2</strong> - Not Working</p>
  
  <pre><code># app/views/forms/_show.html.erb
  
  &lt;%= form_with model: @form, local: true, id: 'new_form' do |f| %&gt;
    &lt;%= render 'section_two', f: f if params[:operating_system] == 'Red Hat Linux 7' %&gt;
  &lt;% end %&gt;
  </code></pre>