Skip to content

Commit

Permalink
Merge pull request #285 from anshbansal/patch-12
Browse files Browse the repository at this point in the history
UrlMappings file location update
  • Loading branch information
graemerocher committed Jun 29, 2015
2 parents ecd226b + 08e134d commit 9d8b441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/en/guide/theWebLayer/urlmappings.gdoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Throughout the documentation so far the convention used for URLs has been the default of @/controller/action/id@. However, this convention is not hard wired into Grails and is in fact controlled by a URL Mappings class located at @grails-app/conf/UrlMappings.groovy@.
Throughout the documentation so far the convention used for URLs has been the default of @/controller/action/id@. However, this convention is not hard wired into Grails and is in fact controlled by a URL Mappings class located at @grails-app/controllers/UrlMappings.groovy@.

The @UrlMappings@ class contains a single property called @mappings@ that has been assigned a block of code:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ When defining url mappings which should be associated with a namespaced
controller, the @namespace@ variable needs to be part of the URL mapping.

{code}
// grails-app/conf/UrlMappings.groovy
// grails-app/controllers/UrlMappings.groovy
class UrlMappings {

static mappings = {
Expand Down

0 comments on commit 9d8b441

Please sign in to comment.