Skip to content

Commit

Permalink
[getting started] remove indentation for get 'posts/new'
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Mar 15, 2012
1 parent 7dabf57 commit 605f426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/getting_started.textile
Expand Up @@ -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: 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> <ruby>
get "posts/new" get "posts/new"
</ruby> </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. 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.
Expand Down

0 comments on commit 605f426

Please sign in to comment.