Skip to content

Commit

Permalink
better routes file example
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmandrup committed May 10, 2012
1 parent c249df8 commit 1ccf617
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -116,8 +116,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'
MyCool::Appliation.routes.draw do
focused_controller_routes do
get '/posts/new' => 'posts#new'
end
end
```

Expand Down

0 comments on commit 1ccf617

Please sign in to comment.