Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Getting Started Guide: Fix code container in Chapter 5.2 [ci-skip] #12385

Merged
merged 1 commit into from

2 participants

@fgo

Generated HTML is not wrapping bash content in a code_container class, due to missing line breaks.

getting started guide - chapter 5 2 screen shot 2013-09-28 at 1 41 47 am

@guilleiguaran guilleiguaran merged commit 777b72b into rails:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  guides/source/getting_started.md
View
2  guides/source/getting_started.md
@@ -522,6 +522,7 @@ Edit the `form_for` line inside `app/views/posts/new.html.erb` to look like this
In this example, the `posts_path` helper is passed to the `:url` option.
To see what Rails will do with this, we look back at the output of
`rake routes`:
+
```bash
$ rake routes
Prefix Verb URI Pattern Controller#Action
@@ -535,6 +536,7 @@ edit_post GET /posts/:id/edit(.:format) posts#edit
DELETE /posts/:id(.:format) posts#destroy
root / welcome#index
```
+
The `posts_path` helper tells Rails to point the form
to the URI Pattern associated with the `posts` prefix; and
the form will (by default) send a `POST` request
Something went wrong with that request. Please try again.