Passing optional locals to Rails partials
Sometimes you need to pass an optional variable to a Rails partial without messing with the rendering of that partial elsewhere. This article shows how to do that.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Sometimes you need to pass an optional variable to a Rails partial without messing with the rendering of that partial elsewhere. This article shows how to do that.
Post a comment