rubyTrials

A way to keep track of breakthroughs I've made in Ruby and Ruby on Rails.

My Photo
Name:
Location: Cadillac, Michigan, United States

Friday, December 09, 2005

If Short Circuit Reminder

Here's a often forgotten shortcut for simple if's:
variable=condition ? value_if_true : value_if_not_true

Very useful for quick things in Rails controllers.

1 Comments:

Blogger lewisjones88289137 said...

This comment has been removed by a blog administrator.

10:17 PM EST  

Post a Comment

Links to this post:

Create a Link

<< Home