simple form - Rendering rails output -
i trying set simple form outputs in rails 4 app. i have project model, scope model , participant model. participant belongs scope. scope belongs project. the participant model has 2 attributes - 1 'location_specific', boolean , 1 'location' string. if location_specific true, want output location required. in participants show partial, have: <div class="datasubtextq">location: <span class="datasubtext"> <% if @project.scope.participant.location_specific == true %> <%= @project.scope.participant.location %> <% else %> <%= render :text => "remote participation" %> <% end %> </span> </div> in form, have: <div class="row"> <div class="col-md-3 col-md-offset-1"> <%= f.label 'can participants participate remotely?', :class => 'ques...