Sha256: 08aba1121f4b296323622e6cc366b717e4d2532d21d2af705607409306ddb302
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
module Motr module Forms class Base < ActionView::Helpers::FormBuilder def render_field_with_errors(html_tag, messages) error_class = Motr::Forms.error_class message_error_class = Motr::Forms.message_error_class render_binding = binding renderer = ERB.new(Motr::Forms.error_template) renderer.result(render_binding).to_s.html_safe end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motr-0.0.1 | lib/motr/forms/base.rb |