cirandas.net

ref: master

plugins/responsive/lib/ext/input_helper.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
require_dependency 'application_helper'

module InputHelper

  protected

  def input_group_addon addon, options = {}, &block
    content_tag :div, class: 'input-group' do
      [
        content_tag(:span, addon, class: 'input-group-addon'),
        capture(&block),
      ].safe_join
    end
  end

end

ApplicationHelper.include InputHelper