title: Rendering rails output
body: <p>I am trying to set up my simple form outputs in my Rails 4 app.</p>
  
  <p>I have a project model, a scope model and a participant model.</p>
  
  <p>Participant belongs to scope. Scope belongs to Project.</p>
  
  <p>The participant model has two attributes - one for 'location_specific', which is a boolean and one for 'location' which is a string.</p>
  
  <p>If location_specific is true, then I want to output the location that is required.</p>
  
  <p>In my participants show partial, I have:</p>
  
  <pre><code>&lt;div class="datasubtextq"&gt;Location:
          &lt;span class="datasubtext"&gt;
            &lt;% if @project.scope.participant.location_specific == true %&gt;
              &lt;%=  @project.scope.participant.location %&gt;
            &lt;% else %&gt;
              &lt;%= render :text =&gt; "Remote participation" %&gt;
            &lt;% end %&gt;
          &lt;/span&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>In my form, I have:</p>
  
  <pre><code>  &lt;div class="row"&gt;
          &lt;div class="col-md-3 col-md-offset-1"&gt;
            &lt;%= f.label 'Can participants participate remotely?', :class =&gt; 'question-project' %&gt;
          &lt;/div&gt;
          &lt;div class="col-md-7"&gt;
            &lt;%= par.collection_radio_buttons :location_specific, [[true, ' Yes'], [false, ' No']], :first, :last, {:item_wrapper_class =&gt; 'fixradio'}, {:class =&gt; "response-project"} %&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
        &lt;div id="requiredlocation"&gt;
  
          &lt;div class="row"&gt;
            &lt;div class="col-md-3 col-md-offset-1"&gt;
              &lt;%= f.label 'Select participation location', :class =&gt; 'question-project' %&gt;
            &lt;/div&gt;
            &lt;div class="col-md-7"&gt;
              &lt;div class="response-project"&gt;
              &lt;%= par.select :location,
                             options_for_select(["New York", "Boston", "Florida"]),
                             label: 'Where will participants take part in this project?',
                             prompt: "Choose one",
                             class: 'response-project' %&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>My problem is that each time I try this, I get the 'remote participation alternative. The City option is not displaying as it should. Any ideas on what I've done wrong?</p>
  
  <p>Thank you</p>