diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2012-05-16 18:11:21 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2012-05-16 18:11:21 +1000 |
commit | 950a7b40af1b32df17dcb9c9304b1f48f4e8fafc (patch) | |
tree | 5442ac7031dc5f156ed0e5ab30da3caa7520f229 | |
parent | 8cfde229ddfbc22d83a84c46c423eefbe49bb694 (diff) | |
download | rails-950a7b40af1b32df17dcb9c9304b1f48f4e8fafc.tar.gz rails-950a7b40af1b32df17dcb9c9304b1f48f4e8fafc.tar.bz2 rails-950a7b40af1b32df17dcb9c9304b1f48f4e8fafc.zip |
[getting started] explain that posts_path exists due to how we defined routes earlier
-rw-r--r-- | guides/source/getting_started.textile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index 40c3303b07..8f752524e9 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -1001,8 +1001,7 @@ Then do the same for the +app/views/posts/edit.html.erb+ view: <%= link_to 'Back', :action => :index %> </erb> -Point your browser to -"http://localhost:3000/posts/new":http://localhost:3000/posts/new and +Point your browser to "http://localhost:3000/posts/new":http://localhost:3000/posts/new and try creating a new post. Everything still works. Now try editing the post and you'll receive the following error: @@ -1020,7 +1019,8 @@ knows that it should create new objects via POST and update them via PUT. If you run +rake routes+ from the console you'll see that we already -have a +posts_path+ route, which was created automatically by Rails. +have a +posts_path+ route, which was created automatically by Rails when we +defined the route for the index action. However, we don't have a +post_path+ yet, which is the reason why we received an error before. |