Skip to content

Instantly share code, notes, and snippets.

@patrickarlt
Created June 24, 2011 19:58
Show Gist options
  • Save patrickarlt/1045549 to your computer and use it in GitHub Desktop.
Save patrickarlt/1045549 to your computer and use it in GitHub Desktop.
Error in a form field
<!-- Error in a form field add class error to the field and insert-->
<div class="field error">
<label>
Name
<input name="application[name]" type="text" placeholder="My Cool App" size="20" maxlength="20" value="<%= h @application['name'] %>">
<small> Required. The name of your application.</small>
</label>
<em class="error">This field is required.</em>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment