Skip to content

Commit

Permalink
Merge pull request trenpixster#122 from eidge/patch-1
Browse files Browse the repository at this point in the history
Clarifying README on route definition
  • Loading branch information
trenpixster authored May 9, 2017
2 parents 5ae9622 + e9b416a commit 9271c60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ defmodule YourApp.Router do
use Addict.RoutesHelper
(...)
scope "/" do
addict :routes
   # Note that the `addict :routes` call should be inside the global
   # scope rather than your app's scope:
# (i.e.: `scope "/", YourApp do: ...` vs `scope "/", do ...`)
# otherwise Phoenix won't be able to find Addict's controllers.
   addict :routes
end
end
```
Expand Down

0 comments on commit 9271c60

Please sign in to comment.