RailsCasts Pro episodes are now free!

Learn more or hide this

with_options

#42 with_options

Jun 08, 2007 | 3 minutes | Active Support
Several methods in rails take a hash of options as the last argument. If you are passing the same options to several methods, you can remove this duplication by using with_options. Learn all about it in this episode.
  • Download:
  • mp4Full Size H.264 Video (5.78 MB)
  • m4vSmaller H.264 Video (4.22 MB)
  • webmFull Size VP8 Video (12 MB)
  • ogvFull Size Theora Video (7.55 MB)