Sha256: 46e350dc41812ad07cdb50735a13e4df1f787686aabf1bc7f5c90d224837cfb6
Contents?: true
Size: 487 Bytes
Versions: 3
Compression:
Stored size: 487 Bytes
Contents
<% # Infer name and id_prefix from attribute key local_assigns[:name] ||= get_attribute_name(form, key) local_assigns[:id] ||= get_attribute_id_prefix(form, key) local_assigns[:value] ||= form.object.send(key) if form.object.respond_to?(key) unless form.object.nil? error_text = form.object.errors.full_messages_for(key).first.presence local_assigns[:errorMessage] ||= { text: error_text } if error_text end %> <%= render "components/govuk_input", **local_assigns %>
Version data entries
3 entries across 3 versions & 1 rubygems