diff --git a/src/main/docs/guide/gspLinks.adoc b/src/main/docs/guide/gspLinks.adoc index d5f7aee..57e65d4 100644 --- a/src/main/docs/guide/gspLinks.adoc +++ b/src/main/docs/guide/gspLinks.adoc @@ -3,7 +3,7 @@ Let's take a look at one more common GSP tag: `` [source,xml] .grails-app/views/home/index.gsp ---- -include::{sourceDir}/grails-app/views/home/index.gsp[indent=0,lines="34..36"] +include::{sourceDir}/grails-app/views/home/index.gsp[indent=0,lines="33..35"] ---- `` renders an HTML `` tag, but it has the advantage in that it allows you to specify your link target following Grails conventions, such as this example (using the `controller`, `action` and `id` attributes). `` is also smart enough to follow our URL mappings, so if we change the URL mapping for `vehicle/show`, the `` tag will still render the correct URL. There's many more attributes supported by `` - see the http://docs.grails.org/latest/ref/Tags/link.html[Grails documentation] for more.