Modified template in sample is new.html.erb, not index.html.erb

This commit is contained in:
Ben Wilhelm 2012-05-10 11:15:32 -07:00
parent 6cbe8dab1e
commit c8f5a216df
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ If you reload
try to save a post without a title, Rails will send you back to the
form, but that's not very useful. You need to tell the user that
something went wrong. To do that, you'll modify
+app/views/posts/index.html.erb+ to check for error messages:
+app/views/posts/new.html.erb+ to check for error messages:
<erb>
<%= form_for :post, :url => { :action => :create } do |f| %>