Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Shortcut Blocks with Symbol to_proc

#6 Shortcut Blocks with Symbol to_proc

Mar 16, 2007 | 3 minutes | Active Support
It may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily.
  • Download:
  • mp4Full Size H.264 Video (5.34 MB)
  • m4vSmaller H.264 Video (3.95 MB)
  • webmFull Size VP8 Video (11.1 MB)
  • ogvFull Size Theora Video (9.18 MB)