aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing.rb
Commit message (Collapse)AuthorAgeFilesLines
* Improve docs of `ActionDispatch::Routing`bogdanvlviv2018-03-131-3/+3
| | | | | - Add a mention about `-g`. - Improve info about `--expanded` option of `rails routes`.
* Add --expanded option to "rails routes"Benoit Tigeot2018-02-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | {}
* Use frozen string literal in actionpack/Kir Shatrov2017-07-291-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Reuse the Parameters#to_h check in the routing helpersRafael Mendonça França2017-04-181-9/+0
| | | | | Since this protection is now in Parameters we can use it instead of reimplementing again.
* [docs] fix ActionDispatch documentationHrvoje Šimić2017-03-131-1/+1
|
* Fix Rubocop violations and fix documentation visibilityRafael Mendonça França2016-12-281-1/+1
| | | | | | Some methods were added to public API in 5b14129d8d4ad302b4e11df6bd5c7891b75f393c and they should be not part of the public API.
* Missing require string/filters for `squish`Akira Matsuda2016-11-151-0/+2
|
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2016-06-031-4/+4
|\ | | | | | | | | Conflicts: guides/source/action_cable_overview.md
| * `routes.rb` --> `config/routes.rb`Jon Moss2016-05-191-4/+4
| | | | | | | | | | | | For consistency. [ci skip]
* | Add back in Oxford CommaJon Moss2016-05-191-1/+1
| | | | | | | | | | | | per [API documentation guidelines](http://edgeguides.rubyonrails.org/api_documentation_guidelines.html#oxford-comma) [ci skip]
* | fix named route example [ci skip]Jose Donizetti2016-05-191-3/+3
|/
* Add more info to insecure URL generation errorDerek Prior2016-04-261-0/+9
| | | | | | | | I always appreciate having a bit more information as to why something is now an error. We can use this error to tell people why what they were previously doing is insecure and give them hints on how to fix it. Signed-off-by: Kasper Timm Hansen <kaspth@gmail.com>
* [skip ci] Reorder paragraphsDamir2016-03-101-3/+3
| | | The previous order made sense [when `match` was used twice to point to two different actions](https://github.com/rails/rails/commit/7305ef842b675bf965f063de681a96294577fb84). In this case the note was misleading as posting to `/posts/:id` would still route to `show` action.
* Fix typographical errorGustavo Villa2016-02-221-1/+1
|
* - Fixed and removed long arguments to rake routesVipul A M2016-02-121-2/+1
| | | | | | - Fixed related documentation and usage all around Fixes #23561
* Add options for rake routes taskVipul A M2016-02-021-1/+2
| | | | | | | | | | 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]
* Refer to rails command instead of rake in a bunch of placesDavid Heinemeier Hansson2015-12-181-1/+1
| | | | Still more to do. Please assist!
* Fix usage of word alternatively in docs [ci skip]Abhishek Jain2015-10-061-1/+1
|
* Update routing.rbHarry V. Kiselev2015-09-201-0/+1
| | | forgotten end of the block
* File encoding is defaulted to utf-8 in Ruby >= 2.1Akira Matsuda2015-09-181-2/+0
|
* Remove not used requiresMarcin Olichwirowicz2015-09-011-3/+0
|
* Remove `assigns` and `assert_template`.Guo Xiang Tan2015-05-301-1/+0
|
* Add missing requires for require 'action_dispatch/routing'Andrew White2014-05-151-0/+1
|
* Update documentation to use Rails.application insteadMarcel Morgan2014-04-131-1/+1
| | | | | | | References to ``AppName::Application` removed in favour of ``Rails.application`` as generated with a new rails 4.1 app. [ci skip]
* Dry-up ActionDispatch::Routing autoloadsGenadi Samokovarov2013-06-041-5/+7
|
* The HTTP method helpers are preferred over match and should be explained ↵Trevor Turk2013-03-181-28/+16
| | | | before named routes
* The default route has been removedTrevor Turk2013-03-181-24/+0
|
* Using match without via is deprecatedTrevor Turk2013-03-181-12/+12
|
* Cleans and removes useless 'Examples' tag [ci skip]Alvaro Pereyra2012-12-011-4/+0
|
* 1.9 hash syntax changes to docsAvnerCohen2012-10-311-24/+24
|
* Support unicode character route in config/routes.rb.kennyj2012-06-161-0/+7
|
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-221-6/+9
| | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* Fixing some double quotes that should be single quotesCarol Nichols2012-01-291-2/+2
|
* Clean up routes inclusion and add some comments for the next soul that ↵José Valim2012-01-031-5/+0
| | | | decides to adventure on this code.
* Remove autoload for non-existent file.Uģis Ozols2011-12-151-1/+0
|
* Also change the default route commentWen-Tien Chang2011-06-161-1/+1
|
* added some fixed fontsSebastian Martinez2011-05-091-3/+3
|
* add cross-references and documentation for scopeJonathan Dance + Gabriel Horner2011-01-281-0/+12
|
* Removed deprecated RouteSet API, still many tests failPiotr Sarnacki2010-09-051-1/+0
|
* Move RoutesProxy to separate filePiotr Sarnacki2010-09-031-0/+1
|
* Rework the routing documentation.Joost Baaij2010-08-281-22/+75
| | | | | Move the default route to the bottom, as this practise should be discouraged. Add documentation for resources, external redirects and Rack applications.
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-4/+4
| | | | 's/[ \t]*$//' -i {} \;)
* correct typos in Routing examplesMislav Marohnić2010-07-221-3/+3
|
* Moved PolymorphicRoutes to ActionDispatch::RoutingPiotr Sarnacki2010-07-201-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Removed deprecated |map| block argument from routing docs since it is no ↵Steven Hancock2010-07-111-1/+1
| | | | | | longer generated in edge Rails config/routes.rb Didn't touch plugins guide since I'm not too clear on how routes work in plugins.
* API Docs: Fixes to the Routing docsRohit Arondekar2010-07-071-6/+4
|
* Avoid calls to Rails::Application since this is not the official API.José Valim2010-07-011-1/+1
| | | | Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally.
* Use h1 for titles.Rizwan Reza2010-06-211-1/+1
|