Ever find it difficult to have really long blocks of code in a Rails view?
These blocks can be separated into partials. Alternatively, Proc.new can be used to define them inline in one file.
You have just read Writing Inline partials in Rails, written on February 18, 2015. This is Today I Learned, a collection of random tidbits I've learned through my day-to-day web development work. I'm Rico Sta. Cruz, @rstacruz on GitHub (and Twitter!).