Module: Toolsmith::ViewHelpers::DefinitionListHelpers

Included in:
Toolsmith::ViewHelpers
Defined in:
lib/toolsmith/helpers/definition_list_helpers.rb

Instance Method Summary collapse

Instance Method Details

#definition_list(options = {}, &block) ⇒ Object

Generates a Definition List

“‘ <%= definition_list do |dl| %>

<%= dl.define "Name", "Robert Ross" %>

<% end %> “‘

Will output:

“‘ <dl class=“dl-horizontal”>

<dt>Name</dt><dd>Robert Ross</dd>

</dl> “‘



20
21
22
# File 'lib/toolsmith/helpers/definition_list_helpers.rb', line 20

def definition_list(options={}, &block)
  Toolsmith::Views::DefinitionList.new(self, options, &block)
end