Sha256: 0e2df647a5c5badc7f241e8f148116b1899dee51600b710605661851f8254b79
Contents?: true
Size: 250 Bytes
Versions: 13
Compression:
Stored size: 250 Bytes
Contents
module Proclaim module PostsHelper def fake_form_field(post, attribute, &block) if post.errors.any? and not post.errors[attribute].blank? content_tag :div, block.call, class: "field_with_errors" else block.call end end end end
Version data entries
13 entries across 13 versions & 1 rubygems