Skip to content

Instantly share code, notes, and snippets.

@XORwell
Last active December 25, 2015 01:59
Show Gist options
  • Save XORwell/6899818 to your computer and use it in GitHub Desktop.
Save XORwell/6899818 to your computer and use it in GitHub Desktop.
-# prepend example #1 (content_tag)
= f.input :date, :input_html => { :class => 'datepicker' }, :wrapper => :prepend do
= f.input_field :date
= content_tag :span, :class => 'input-group-addon' do
= content_tag :span, nil, :class => 'glyphicon glyphicon-search'
-# prepend example #2 (haml tag)
= f.input :date, :input_html => { :class => 'datepicker' }, :wrapper => :prepend do
= f.input_field :date
%span.input-group-addon
%span.glyphicon.glyphicon-search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment