Tag Archives: block

Cool Conditional Syntax in Ruby (on Rails)

Ruby is beautiful @posts = if true Post.all else [] end Simply elegant!
Posted in Ruby on Rails | Also tagged , , | Leave a comment