Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve routing example. Fixes #15.

  • Loading branch information...
commit 6ac073fb5bfb4752d07b1220b03b6a335ffd4eeb 1 parent fb86396
@jonleighton authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.md
View
6 README.md
@@ -115,8 +115,10 @@ will route `GET /posts/new` to `PostsController#new`.
To get around this, we use the `focused_controller_routes` helper:
``` ruby
-focused_controller_routes do
- get '/posts/new' => 'posts#new'
+Loco2::Application.routes.draw do
+ focused_controller_routes do
+ get '/posts/new' => 'posts#new'
+ end
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.