module ApplicationHelper

Public Instance Methods

hidden_div_if(condition, attributes = {}, &block) click to toggle source
# File app/helpers/application_helper.rb, line 3
def hidden_div_if(condition, attributes = {}, &block)
  if condition
    attributes["style"] = "display: none"
  end
  content_tag("div", attributes, &block)
end