protip

A 1-post collection


RSS feed of posts tagged protip

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? »