diff options
author | John Kelly Ferguson <hello@johnkellyferguson.com> | 2014-05-21 21:47:18 -0400 |
---|---|---|
committer | John Kelly Ferguson <hello@johnkellyferguson.com> | 2014-05-21 23:01:45 -0400 |
commit | d02c810e29080389ab26313ae75556081aa9ac63 (patch) | |
tree | b1b7d6e6d9fb411281453708ec09adc28b46152e /guides/source/active_record_validations.md | |
parent | 2fb2913b35c4a706f0207119ab0b3e89f61546a1 (diff) | |
download | rails-d02c810e29080389ab26313ae75556081aa9ac63.tar.gz rails-d02c810e29080389ab26313ae75556081aa9ac63.tar.bz2 rails-d02c810e29080389ab26313ae75556081aa9ac63.zip |
Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip]
Diffstat (limited to 'guides/source/active_record_validations.md')
-rw-r--r-- | guides/source/active_record_validations.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index 6bedec1e63..cb459626d5 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -1129,15 +1129,15 @@ generating a scaffold, Rails will put some ERB into the `_form.html.erb` that it generates that displays the full list of errors on that model. Assuming we have a model that's been saved in an instance variable named -`@post`, it looks like this: +`@article`, it looks like this: ```ruby -<% if @post.errors.any? %> +<% if @article.errors.any? %> <div id="error_explanation"> - <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2> + <h2><%= pluralize(@article.errors.count, "error") %> prohibited this article from being saved:</h2> <ul> - <% @post.errors.full_messages.each do |msg| %> + <% @article.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> @@ -1151,7 +1151,7 @@ the entry. ``` <div class="field_with_errors"> - <input id="post_title" name="post[title]" size="30" type="text" value=""> + <input id="article_title" name="article[title]" size="30" type="text" value=""> </div> ``` |