grosser.it
Optional Atrributes for Partials
I just stumbled about a nice and only a little dirty approach to make partial attributes optional. Helper #app/helpers/application_helper.rb def options;{};end def item;nil;end View render :partial…