aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
Commit message (Collapse)AuthorAgeFilesLines
* Use a single term instead of all terms used to describe path and URL helpers ↵Sharang Dashputre2019-07-261-10/+10
| | | | together
* typo changeflocela2019-05-161-1/+1
| | | | In Adding More RESTful Actions, Adding Member Routes: I believe the word 'that' should be added to the sentence, 'Within the block of member routes, each route name specifies the HTTP verb will be recognized.' This results in 'Within the block of member routes, each route name specifies the HTTP verb that will be recognized.'
* [ci skip] Removed extra hyphensShailesh Kalamkar2019-03-111-4/+4
|
* Add example of the output of `rails routes --expanded` in the routing guide ↵Prathamesh Sonpatki2019-03-111-1/+28
| | | | | | | [ci skip] - Instead of the note at the end, added an example of how the output looks by using the expanded switch.
* Update links and code examples in the guides to use HTTPS where the host ↵Nathaniel Suchy2019-03-061-1/+1
| | | | supports it.
* Use consistent hash syntax for routesAndy Waite2019-02-011-1/+1
| | | | [ci skip]
* [ci skip] improve doc in `Adding Member Routes` section of routing chapter.lanzhiheng2019-01-111-1/+1
|
* Add note about symbols vs stringsGannon McGibbon2018-12-041-0/+2
|
* [ci skip] corrects more grammar awkwardness, replacing denylist with ↵Mina Slater2018-08-221-7/+7
| | | | restricted list and consistently use permitted
* [ci skip] change all instances of blacklist and whitelist to denylist and ↵Mina Slater2018-08-211-7/+7
| | | | allowlist
* [ci skip] Update adding member routes guide to fix inconsistency with the ↵Ryan Brooks2018-08-031-1/+1
| | | | implementation. Closes #33518
* Merge pull request #33229 from ↵Matthew Draper2018-07-251-7/+7
|\ | | | | | | | | albertoalmagro/albertoalmagro/prefer-rails-command-over-bin-rails Prefer rails command over bin/rails
| * Recommend use of rails over bin/railsAlberto Almagro2018-07-061-7/+7
| | | | | | | | | | | | | | | | | | As discussed in #33203 rails command already looks for, and runs, bin/rails if it is present. We were mixing recommendations within guides and USAGE guidelines, in some files we recommended using rails, in others bin/rails and in some cases we even had both options mixed together.
* | Rails guides are now served over httpsPaul McMahon2018-07-241-1/+1
|/ | | | | http links will be redirected to the https version, but still better to just directly link to the https version.
* Added a lot of Oxford commasAnthony Crumley2018-05-101-4/+4
| | | | | | | [ci skip] A regular expression was used to find a lot of missing Oxford commas and add them. The regular expression was as follows. ", ([a-zA-Z0-9.\`:'\"]+ ){1,6}(or|and) "
* Fix named route parameter example [ci skip]yuuji.yaginuma2018-05-081-5/+5
| | | | The prefix of `new` and `edit` generated by `resources` is singular.
* Fix output in routing.md [ci skip]Yuta Uchida2018-05-071-1/+1
|
* Partly revert "Use https with weblog URI" [ci skip]Ryuta Kamizono2018-05-031-1/+1
| | | | weblog.jamisbuck.org is not GitHub Pages.
* Use https with weblog URIYoshiyuki Hirano2018-05-021-1/+1
|
* Adding precision about which letter case to use for controller names … ↵simonjamain2018-04-271-0/+2
| | | | | | | | (#32740) * Adding precision about which letter case to use for controller names in routing Many people (including myself) encounter an error when having multiple words controller names and trying to put camelCase in their routes
* [ci skip] Add missing do.Kasper Timm Hansen2018-03-121-1/+1
|
* Add section to routing guide about config/routes.rb [ci skip]Andrew White2018-03-121-0/+20
| | | | Closes #32219.
* Add --expanded option to "rails routes"Benoit Tigeot2018-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | When using rails routes with small terminal or complicated routes it can be very difficult to understand where is the element listed in header. psql had the same issue, that's why they created "expanded mode" you can switch using `\x` or by starting psql with ``` -x --expanded Turn on the expanded table formatting mode. This is equivalent to the \x command. ``` The output is similar to one implemented here for rails routes: db_user-# \du List of roles -[ RECORD 1 ]---------------------------------------------- Role name | super Attributes | Superuser, Create role, Create DB Member of | {} -[ RECORD 2 ]---------------------------------------------- Role name | role Attributes | Superuser, Create role, Create DB, Replication Member of | {}
* Correct `to` option's value of the route in the Bound Parameters section in ↵Avneet Singh Malhotra2018-02-261-1/+1
| | | | routing guide.
* [ci skip] Update routing guide for DirectYoshiyuki Hirano2017-12-121-0/+43
| | | | * Added the direct method to routing guide.
* Replaces the 17 for the actual call to params[:id] that would make the code ↵Mariano Giagante2017-08-061-1/+1
| | | | work as intended. [ci skip]
* Squashed commit of the following:ydakuka2017-07-281-3/+3
| | | | | | | | | | | | | | commit 4a3d295f3011e771cddead80de7497ca15d15c13 Author: Yauheni Dakuka <yauheni.dakuka@gmail.com> Date: Fri Jul 28 14:31:35 2017 +0300 Update routing.md commit 620a4ce47288e3ef6504290c78f931214968e7e3 Author: Yauheni Dakuka <yauheni.dakuka@gmail.com> Date: Fri Jul 28 14:19:29 2017 +0300 [ci skip] update routing guide
* [ci skip] update routing guideYauheni Dakuka2017-07-281-1/+1
|
* Merge pull request #27662 from nhorton/patch-1Sean Griffin2017-07-171-1/+1
|\ | | | | Fixing "Adding Member Routes" documentation
| * Fixing "Adding Member Routes" documentationNoah Horton2017-01-121-1/+1
| | | | | | Previously said the helpers were preview_photo_url and preview_photo_path, i.e. action_resource, when in fact they are resource_action. i.e. photo_preview_path. Fixed.
* | Update routing doc on the `get` `to:` option [ci skip]Dzianis Dashkevich2017-04-111-2/+2
| |
* | Fix Guides to include #23138 [ci skip]claudiob2017-04-071-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | A long-standing bug has been fixed in Rails 5.1 by @pixeltrix See https://github.com/rails/rails/blame/5-1-stable/actionpack/CHANGELOG.md#L52-L64 This PR updates the guides accordingly. Before: <img width="799" alt="before" src="https://cloud.githubusercontent.com/assets/10076/24809105/4ec7066c-1b73-11e7-98c6-c709c3465306.png"> After: <img width="799" alt="after" src="https://cloud.githubusercontent.com/assets/10076/24809109/50b21188-1b73-11e7-8a1a-32c3d0ed512a.png">
* | Small grammar fixJon Moss2017-03-301-1/+1
|/ | | | [ci skip]
* Add note on defaults block optionBrandon Weaver2016-12-141-0/+8
| | | When I was looking for how to default the entire routes file to JSON I could only find the postfix option. It was mentioned on IRC that you could do this with a block as well and I had not found it in the documentation.
* Remove `:action` and `:controller` segments from routing guideWill Jordan2016-08-221-25/+11
| | | | | Fixes #26247. [ci skip]
* Light grammar edits to beginning of Routing guideJon Moss2016-05-181-3/+3
| | | | [ci skip]
* Remove incorrect Rack documentation exampleJon Moss2016-03-071-2/+2
| | | | | | | | | `Sprockets` does not respond to the call method, so I changed the example to use a fake `MyRackApp`. Closes #22579. [ci skip]
* - Fixed and removed long arguments to rake routesVipul A M2016-02-121-5/+5
| | | | | | - Fixed related documentation and usage all around Fixes #23561
* use rails command in routes taskyuuji.yaginuma2016-02-031-7/+7
| | | | | For other task has become to use the rails command at doc and test, I think that routes task also it is better to use the rails command.
* Add options for rake routes taskVipul A M2016-02-021-3/+14
| | | | | | | | | | Add two options: `-c` and `-g`. `-g` option returns the urls name, verb and path fields that match the pattern. `-c` option returns the urls for specific controller. Fixes #18902, and Fixes #20420 [Anton Davydov & Vipul A M]
* Update the exception of format constraint in routesFernando Seror2016-01-231-0/+2
| | | | | Per https://github.com/rails/rails/issues/20264 [ci skip]
* use bin/rails default instead of rake commands [ci skip]Gaurav Sharma2016-01-191-4/+4
| | | I go through the `http://edgeguides.rubyonrails.org/` and found `rake` commands in various files that are in RAILS 5.0 implement by `bin/rails` command. I try to change all that can be directly use `bin/rails …`
* Fix letter case and grammar in Routing guideDave Powers2015-12-221-1/+1
|
* ApplicationRecord documentation passGenadi Samokovarov2015-12-171-3/+3
| | | | | | | This is a pass over the documentation which fills the missing gaps of `ApplicationRecord`. [ci skip]
* Merge pull request #22283 from the-undefined/routes-error-singular-resourceArthur Nogueira Neves2015-11-281-2/+2
|\ | | | | [ci skip] add `controller:` argument to routing.md
| * [ci skip] add `controller:` argument to routing.mdthe-undefined2015-11-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Passing a `Symbol` to the `to:` argument for a `get` route requires a `controller` argument to also be defined. The documentation is missing the `controller:` argument, which leaving out raises a routing exception: ```ruby get 'profile', to: :show ``` ``` $ rake routes ArgumentError: Missing :controller key on routes definition, please check your routes. ``` Adding the `controller:` argument maps the route correctly: ```ruby get 'profile', to: :show, controller: 'users' ``` ``` $ rake routes profile GET /profile(.:format) users#show ```
* | [ci skip] Replace "destroy` method" with `destroy` action`yui-knk2015-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Sure this is `destroy` method of PhotosController, but in this chapter these methods which mapped by the router are called "action". For example: ```ruby get '/patients/:id', to: 'patients#show' ``` is described to dispatch "controller's `show` action".
* | [ci skip] Change 'an URL' to 'a URL' as URL doesn't have a vowel soundtanmay30112015-10-061-1/+1
| |
* | Update routing.mdThiago Augusto2015-09-221-2/+2
|/
* Tiny documentation fixes [ci skip]Robin Dupret2015-08-111-5/+5
|