Good day,
I found some errors here http://guides.rubyonrails.org/getting_started.html
In the chapter 5.12 Updating Posts
When talking about the file app/views/posts/edit.html.erb
Where it says <%= form_for :post, url: post_path(@post.id) },
the } symbol should not be there.
The correct line should be: <%= form_for :post, url: post_path(@post.id) ,
In the chapter 5.12 Updating Posts
When talking about the file app/views/posts/index.html.erb
Where it says <%= link_to ‘Show’, post_path %>
the variable post is missing.
The correct line should be: <%= link_to ‘Show’, post_path(post) %>
Would be possible to have this fixed?
Sorry, bad link, this explains it better:
Julian, it looks like this particular error has already been fixed on edge:
http://edgeguides.rubyonrails.org/getting_started.html#updating-posts
Yes the first issue is fixed.
You can send a PR to [1] with a minor change
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -1132,7 +1132,7 @@ appear next to the "Show" link:
<tr>
<td><%= post.title %></td>
<td><%= post.text %></td>
- <td><%= link_to 'Show', post %></td>
+ <td><%= link_to 'Show', post_path(post) %></td>
<td><%= link_to 'Edit', edit_post_path(post) %></td>
</tr>
<% end %>
to fix the second issue.
[1] github.com/rails/rails
Thanks,
Vipul A.M.
+91-8149-204995