Pro Tip: Encapsulate logic in Rails Views for maintainability
A Rails view anti-pattern is that they very quickly turn into a nasty tangle of conditional html blocks. Example: <code class="ruby"> <% if logged_in? … »
A Rails view anti-pattern is that they very quickly turn into a nasty tangle of conditional html blocks. Example: <code class="ruby"> <% if logged_in? … »