mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Modified template in sample is new.html.erb, not index.html.erb
This commit is contained in:
parent
6cbe8dab1e
commit
c8f5a216df
1 changed files with 1 additions and 1 deletions
|
@ -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| %>
|
||||
|
|
Loading…
Reference in a new issue