diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2012-03-14 18:49:52 -0700 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2012-03-14 18:49:52 -0700 |
commit | 605f4267bc4a98783430eb28a56e17c3f09e5871 (patch) | |
tree | d4f1791f1a143bc6415bddc79af1e348920fee3d /railties/guides/source/getting_started.textile | |
parent | 7dabf57f9e3fee0b208041c864dc3194ce47c872 (diff) | |
download | rails-605f4267bc4a98783430eb28a56e17c3f09e5871.tar.gz rails-605f4267bc4a98783430eb28a56e17c3f09e5871.tar.bz2 rails-605f4267bc4a98783430eb28a56e17c3f09e5871.zip |
[getting started] remove indentation for get 'posts/new'
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-rw-r--r-- | railties/guides/source/getting_started.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index c0af3cdc08..b1615cecb8 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -233,7 +233,7 @@ This is because there is nowhere inside the routes for the application -- define To do this, you're going to need to create a route inside +config/routes.rb+ file, on a new line between the +do+ and the +end+ for the +draw+ method: <ruby> - get "posts/new" +get "posts/new" </ruby> This route is a super-simple route: it defines a new route that only responds to +GET+ requests, and that the route is at +posts/new+. But how does it know where to go without the use of the +:to+ option? Well, Rails uses a sensible default here: Rails will assume that we want this route to go to the new action inside the posts controller. |