From 1238b5dc02c46f6e774e4611f5c5715cf01ecca5 Mon Sep 17 00:00:00 2001 From: Luzi Humm Date: Tue, 25 Jun 2013 00:22:19 +0200 Subject: [PATCH 1/2] change id="errorExplanation" to id="error_explanation" to match the generated files --- guides/source/getting_started.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index 0d44f0e776..a773519bba 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -793,7 +793,7 @@ something went wrong. To do that, you'll modify ```html+erb <%= form_for :post, url: posts_path do |f| %> <% if @post.errors.any? %> -
+

<%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:

    @@ -862,7 +862,7 @@ it look as follows: <%= form_for :post, url: post_path(@post.id), method: :patch do |f| %> <% if @post.errors.any? %> -
    +

    <%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:

      @@ -977,7 +977,7 @@ content: ```html+erb <%= form_for @post do |f| %> <% if @post.errors.any? %> -
      +

      <%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:

        From 7438e2fa83b7a9185f4814ddd0f7eab2183c142d Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Tue, 25 Jun 2013 19:06:15 -0300 Subject: [PATCH 2/2] Fix another "error_explanation" css class in guides [ci skip] --- guides/code/getting_started/app/views/posts/_form.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guides/code/getting_started/app/views/posts/_form.html.erb b/guides/code/getting_started/app/views/posts/_form.html.erb index c9fb74af9c..f2f83585e1 100644 --- a/guides/code/getting_started/app/views/posts/_form.html.erb +++ b/guides/code/getting_started/app/views/posts/_form.html.erb @@ -1,6 +1,6 @@ <%= form_for @post do |f| %> <% if @post.errors.any? %> -
        +

        <%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:

          @@ -14,12 +14,12 @@ <%= f.label :title %>
          <%= f.text_field :title %>

          - +

          <%= f.label :text %>
          <%= f.text_area :text %>

          - +

          <%= f.submit %>