aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9698 from garethrees/request_documentationSteve Klabnik2013-03-131-0/+16
|\ | | | | Add documentation to ActionDispatch::Request
| * Add documentation to ActionDispatch::RequestGareth Rees2013-03-131-0/+16
| |
* | `Http::Headers` respects dotted env vars, symbols, headers with numbers.Yves Senn2013-03-131-11/+6
| |
* | allow headers and env to be passed in `IntegrationTest`.Yves Senn2013-03-132-35/+49
| | | | | | | | Closes #6513.
* | refactor, `Http::Headers` stores headers in env notationYves Senn2013-03-131-17/+21
| | | | | | | | | | Also: cleanup, use consistent syntax for `Http::Header` and test.
* | Http::Headers respects headers that are not prefixed with HTTP_Yves Senn2013-03-131-1/+13
| |
* | Change from each to each_value in http/parameters since we don't use keyVipul A M2013-03-131-1/+1
|/
* Change useless tr to gsubrobertomiranda2013-03-061-2/+2
|
* change useless gsub to trrobertomiranda2013-03-052-3/+3
|
* Routing match `via` option requirement exception message made more explicitBoris Staal2013-03-051-1/+2
|
* Fix formats on xhr requests when HTTP_ACCEPT is empty stringmaximerety2013-03-041-1/+1
| | | | | | Fix ActionDispatch::Request#formats on xhr requests when HTTP_ACCEPT header is empty string. About issue #7774, same fix as in commit bebb02f but for xhr requests.
* Use custom visitor class for optimized url helpersAndrew White2013-03-033-9/+13
| | | | | | | | Rather than trying to use gsub to remove the optional route segments, which will fail with nested optional segments, use a custom visitor class that returns a empty string for group nodes. Closes #9524
* Remove redundant methodAndrew White2013-02-281-8/+0
|
* `format: true` does not override existing format constraints.Yves Senn2013-02-271-1/+1
| | | | | | | Closes #9466. Passing `format: true` used to override the constraints: { format: /json/ } with `/.+/`. This patch only sets the format if there is no constraint present.
* allow non-String default params in the router.Yves Senn2013-02-261-0/+2
| | | | | | | Closes #9435. Skip valid encoding checks for non-String parameters that come from the matched route's defaults.
* the router allows String contraints.Yves Senn2013-02-261-11/+17
| | | | Closes #9432.
* Merge pull request #9434 from zires/devRafael Mendonça França2013-02-261-1/+1
|\ | | | | Journey::Path::Pattern#new raise more meaningful exception message.
| * Make ActionDispatch::Journey::Path::Pattern#new raise more meaningful ↵zires2013-02-271-1/+1
| | | | | | | | exception message.
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-02-262-2/+2
|\ \
| * | Typo fix.Carson McDonald2013-02-211-1/+1
| | |
| * | improve grammar describing ActionDispatch::Cookies::CookieJar#deleteWeston Platter2013-02-191-1/+1
| | |
| * | improve grammar describing ActionDispatch::Cookies::CookieJar#deleteWeston Platter2013-02-191-1/+1
| | |
* | | Allow both a path and an option on root in config/routesSam Ruby2013-02-261-2/+9
| |/ |/|
* | determine the match shorthand target early.Yves Senn2013-02-211-14/+12
| | | | | | | | | | | | | | | | Closes #7554. This patch determines the `controller#action` directly in the `match` method when the shorthand syntax is used. this prevents problems with namespaces and scopes.
* | Remove XML Parser from ActionDispatchPrem Sichanugrist2013-02-201-23/+3
| | | | | | | | | | If you want an ability to parse XML parameters, please install `actionpack-xml_parser` gem.
* | InvalidMessage is in ActiveSupport::MessageEncryptor namespaceSantiago Pastorino2013-02-191-1/+1
| | | | | | | | Closes #9302
* | Add missing require to routes inspectorCarlos Antonio da Silva2013-02-191-0/+1
| |
* | Require AS deps in ActionDispatch::Http::URLMiha Filej2013-02-191-0/+3
| | | | | | | | Allows us to use url_for and friends in isolation.
* | Duck typing is hard. Add header to HtmlTableFormatter.Steve Klabnik2013-02-181-0/+4
| | | | | | | | | | | | | | Somehow I missed this method, which was then throwing an error when viewing routes as HTML. Make @rubys happy: ✔
* | editorial tweaksXavier Noria2013-02-191-3/+6
| |
* | use strip_heredoc to keep indentation consistent.Steve Klabnik2013-02-181-12/+12
| | | | | | | | Thanks @sikachu. :heart:
* | Add message when you have no routes defined.Steve Klabnik2013-02-181-0/+25
| | | | | | | | | | | | Print a message in both `rake routes` and at GET "/rails/info/routes" that lets you know you have no routes defined, as well as linking to the Rails Guide on the topic.
* | Add headings to rake routes tableSteve Klabnik2013-02-181-3/+19
| |
* | Gist URLs are now namespacedAkira Matsuda2013-02-181-1/+1
| | | | | | | | see: https://github.com/blog/1406-namespaced-gists
* | Return false on toggle on error pagesBartlomiej Kozal2013-02-172-6/+7
| |
* | Merge pull request #9307 from wangjohn/remove_unneeded_md5_digestXavier Noria2013-02-161-1/+0
|\ \ | |/ |/| Removed an old require of an MD5 digest which is no longer used.
| * Removed an old require of an MD5 digest which is no longer used.wangjohn2013-02-151-1/+0
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-02-151-1/+1
|\ \ | |/ |/| | | | | Conflicts: guides/source/upgrading_ruby_on_rails.md
| * Fix typo.Carson McDonald2013-02-111-1/+1
| | | | | | | | [ci skip]
* | Merge pull request #8704 from senny/remove_regexp_global_from_url_forAaron Patterson2013-02-141-2/+6
|\ \ | | | | | | replace regexp global in #url_for
| * | replace regexp global in #url_forYves Senn2013-01-161-2/+6
| | |
* | | Avoid to_sym callsSantiago Pastorino2013-02-131-1/+1
| | |
* | | the `:controller` option for routes can contain numbers. closes #9231.Yves Senn2013-02-091-1/+1
| | |
* | | Add missing require to APCarlos Antonio da Silva2013-02-081-0/+1
| | |
* | | Fix #9168 Initialize NullCookieJar with all options needed for KeyGeneratorAndrey Chernih2013-02-081-4/+8
| | |
* | | ruby constant syntax is not supported as routing `:controller` option.Yves Senn2013-02-061-0/+6
| |/ |/| | | | | | | | | | | | | | | | | The current implementation only works correctly if you supply the `:controller` with directory notation (eg. `:controller => 'admin/posts'`). The ruby constant notation (eg. `:controller => 'Admin::Posts`) leads to unexpected problems with `url_for`. This patch prints a warning for every non supported `:controller` option. I also added documentation how to work with namespaced controllers. The warning links to that documentation in the rails guide.
* | Missing or unneeded require extract_optionsAkira Matsuda2013-02-013-0/+4
| |
* | remove dead codeAaron Patterson2013-01-301-4/+1
| |
* | change parameter name for positional argsAaron Patterson2013-01-301-2/+1
| |
* | nodoc the helper classes, cache stuff for optimized helperAaron Patterson2013-01-301-13/+17
| |