Sha256: dbec4845b69c336793d60b6d1eed729c42f786c7117f706e51d8e87c2e4b11ec

Contents?: true

Size: 490 Bytes

Versions: 3

Compression:

Stored size: 490 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_textarea", **local_assigns %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
govuk-design-system-rails-0.10.3 app/views/form_components/_govuk_textarea.html.erb
govuk-design-system-rails-0.10.2 app/views/form_components/_govuk_textarea.html.erb
govuk-design-system-rails-0.10.1 app/views/form_components/_govuk_textarea.html.erb