... <div class="email"> <%= f.label :email, "Email Address" %> <% if error = @user.errors[:email].first %> <%= content_tag(:div, error, :class => "error") %> <% end %> <%= f.text_field :email %> <%= content_tag(:div, "Don’t worry.", :class => "hint") %> </div> ... <% end %> RAILS FORM BUILDER