Skip to content

Commit

Permalink
[playframework#1060] Docs: Tutorial: Clarify routes ordering in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hilton committed Nov 21, 2011
1 parent 2aa79b1 commit 70f8ddb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/manual/guide8.textile
Expand Up @@ -103,6 +103,8 @@ bc. # Administration
GET /admin/? Admin.index
* /admin module:crud

Remember that order matters in the routes file; the first line that matches the incoming HTTP request is used. This means that the entries that map to the @Admin@ controller must come before the second line above, which maps all other @/admin@ requests to CRUD module pages. Otherwise, @/admin/@ will map to @CRUD.index@ instead of @Admin.index@.

Now link the ‘Log in to write something’ text from the @yabe/app/views/main.html@ template to this controller:

bc. …
Expand Down

0 comments on commit 70f8ddb

Please sign in to comment.