Skip to content

Instantly share code, notes, and snippets.

@johnmcaliley
Created July 18, 2011 14:52
Show Gist options
  • Save johnmcaliley/1089744 to your computer and use it in GitHub Desktop.
Save johnmcaliley/1089744 to your computer and use it in GitHub Desktop.
module Formtastic
module Inputs
module Base
module Wrapping
def input_wrapping(&block)
template.content_tag(:li,
[template.capture(&block), error_html, hint_html].join("\n").html_safe,
wrapper_html_options
)
end
#.....
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment