Skip to content

Commit 66c5883

Browse files
committed
docs: decorate keywords in source code with '``'
1 parent 775f50c commit 66c5883

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

user_guide_src/source/incoming/restful.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ name::
4747
.. important:: The routes are matched in the order they are specified, so if you have a resource photos above a get 'photos/poll' the show action's route for the resource line will be matched before the get line. To fix this, move the get line above the resource line so that it is matched first.
4848

4949
The second parameter accepts an array of options that can be used to modify the routes that are generated. While these
50-
routes are geared toward API-usage, where more methods are allowed, you can pass in the 'websafe' option to have it
50+
routes are geared toward API-usage, where more methods are allowed, you can pass in the ``websafe`` option to have it
5151
generate update and delete methods that work with HTML forms::
5252

5353
$routes->resource('photos', ['websafe' => 1]);
@@ -90,15 +90,15 @@ Otherwise you can remove unused routes with the ``except`` option. This option r
9090

9191
$routes->resource('photos', ['except' => 'new,edit']);
9292

93-
Valid methods are: index, show, create, update, new, edit and delete.
93+
Valid methods are: ``index``, ``show``, ``create``, ``update``, ``new``, ``edit`` and ``delete``.
9494

9595
ResourceController
9696
============================================================
9797

98-
The `ResourceController` provides a convenient starting point for your RESTful API,
98+
The ``ResourceController`` provides a convenient starting point for your RESTful API,
9999
with methods that correspond to the resource routes above.
100100

101-
Extend it, over-riding the `modelName` and `format` properties, and then
101+
Extend it, over-riding the ``modelName`` and ``format`` properties, and then
102102
implement those methods that you want handled.::
103103

104104
<?php
@@ -195,16 +195,16 @@ Otherwise you can remove unused routes with the ``except`` option. This option r
195195

196196
$routes->presenter('photos', ['except' => 'new,edit']);
197197

198-
Valid methods are: index, show, new, create, edit, update, remove and delete.
198+
Valid methods are: ``index``, ``show``, ``new``, ``create``, ``edit``, ``update``, ``remove`` and ``delete``.
199199

200200
ResourcePresenter
201201
============================================================
202202

203-
The `ResourcePresenter` provides a convenient starting point for presenting views
203+
The ``ResourcePresenter`` provides a convenient starting point for presenting views
204204
of your resource, and processing data from forms in those views,
205205
with methods that align to the resource routes above.
206206

207-
Extend it, over-riding the `modelName` property, and then
207+
Extend it, over-riding the ``modelName`` property, and then
208208
implement those methods that you want handled.::
209209

210210
<?php

0 commit comments

Comments
 (0)