title: If else statements in .html.erb in views
body: <p>In rails, I often run into the situation where inside the views I'll do something like</p>
  
  <pre><code>&lt;% if @some_condition_previusly_established_in_a_controller %&gt;
   &lt;div class="one"&gt;123&lt;/div&gt;
  &lt;% else %&gt;
   &lt;div class="two"&gt;something else&lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>It looks a bit cluttery. Is this an acceptable way of working with views or not?</p>