Flowdock

Notes posted by simonmenke

RSS feed
August 14, 2008
5 thanks

Optional classes

This piece of syntax saves me allot of time. Note the if statement.

Code example

content_tag(:div, "Hello World", :class => ("active" if i_am_an_active_item?))