app/helpers/application_helper.rb
# Output a column div.
# The current two-column layout has primary & secondary columns.
# The options hash is handled so that the caller can pass options to 
# content_tag.
# The LEFT, RIGHT, and FULL constants are defined in 
# config/initializers/global_constants.rb
Output a column div.
The current two-column layout has primary & secondary columns.
The options hash is handled so that the caller can pass options to
content_tag.
The LEFT, RIGHT, and FULL constants are defined in
config/initializers/global_constants.rb
Output a column div . The current two - column layout has primary & secondary columns . The options hash is handled so that the caller can pass options to content_tag . The LEFT RIGHT and FULL constants are defined in config / initializers / global_constants . rb
def column_div(options = {}, &block)
    klass = options.delete(:type) == :primary ? "col1" : "col2"
    options[:class] = "#{klass} #{options[:class]}".strip
    content = content_tag(:div, capture(&block), options)
    concat(content, block.binding)
  end
def column_div ( options = { } , & block ) klass = options . delete ( :type ) == :primary ? "col1" : "col2" options [ :class ] = "#{klass} #{options[:class]}" . strip content = content_tag ( :div , capture ( & block ) , options ) concat ( content , block . binding ) end
Output a column div.
Output a column div .
# Allow callers to pass in additional classes.
options
<not_specific>
block
<not_specific>