Skip to content

Instantly share code, notes, and snippets.

@iurevych
Created December 11, 2013 12:31
Show Gist options
  • Select an option

  • Save iurevych/7909598 to your computer and use it in GitHub Desktop.

Select an option

Save iurevych/7909598 to your computer and use it in GitHub Desktop.

Revisions

  1. iurevych created this gist Dec 11, 2013.
    10 changes: 10 additions & 0 deletions gistfile1.haml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    .form-field.is-required
    = f.label :name
    = f.text_field :name, required: true


    :css
    .form-field.is-required > label:first-child:after {
    content: '*';
    margin-left: 2px;
    }