- 03 5月, 2012 1 次提交
-
-
由 Andrew White 提交于
A callable object passed as a constraint for a route may access the request parameters as part of its check. This causes the combined parameters hash to be cached in the environment hash. If the constraint fails then any subsequent access of the request parameters will be against that stale hash. To fix this we delete the cache after every call to `matches?`. This may have a negative performance impact if the contraint wraps a large number of routes as the parameters hash is built by merging GET, POST and path parameters. Fixes #2510.
-
- 26 4月, 2012 2 次提交
-
-
由 Arun Agrawal 提交于
-
由 Jose and Yehuda 提交于
This feature enables the ability to load an external routes file from the router via: draw :filename External routes files go in +config/routes+. This feature works in both engines and applications.
-
- 25 4月, 2012 1 次提交
-
-
由 Jose and Yehuda 提交于
In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
-
- 23 4月, 2012 1 次提交
-
-
由 Bogdan Gusiev 提交于
-
- 03 4月, 2012 1 次提交
-
-
由 Jurriaan Pruis 提交于
-
- 27 3月, 2012 2 次提交
-
-
由 Vijay Dev 提交于
-
由 Lukasz Sarnacki 提交于
It is in response for confusion in issue #5301
-
- 26 3月, 2012 1 次提交
-
-
由 Jamie Macey 提交于
By default, resources routes are created with :resource/:id. A model defining to_param can make prettier urls by using something more readable than an integer ID, but since the route picks it up as :id you wind up with awkward User.find_by_username(params[:id]) calls. By overriding the key to be used in @request.params you can be more obvious in your intent.
-
- 17 3月, 2012 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 04 3月, 2012 1 次提交
-
-
由 Brian Cardarella 提交于
Allow the root route helper to accept just a string
-
- 02 3月, 2012 1 次提交
-
-
由 José Valim 提交于
-
- 25 2月, 2012 2 次提交
-
-
由 Xavier Noria 提交于
There was a mix, sometimes patch first, sometimes put first. Use always patch first, since this is going to be the primary verb for updates.
-
由 Xavier Noria 提交于
uses PATCH for the forms of persisted records, and routes PATCH and PUT to the update action of resources
-
- 24 2月, 2012 1 次提交
-
-
由 Justin Woodbridge 提交于
-
- 23 2月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 David Lee 提交于
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.
-
- 08 2月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 06 2月, 2012 2 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
Too painful to lose the compact shorthand form! This reverts commit e848c525. Conflicts: actionpack/lib/action_dispatch/routing/mapper.rb
-
- 01 2月, 2012 1 次提交
-
-
由 Wen-Tien Chang 提交于
-
- 24 1月, 2012 3 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 21 1月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 29 12月, 2011 1 次提交
-
-
由 Kevin Moore 提交于
-
- 26 12月, 2011 1 次提交
-
-
由 Piotr Sarnacki 提交于
If you used dynamic constraint like that: scope :constraint => MyConstraint.new do mount RackApp => "/foo" end routes were not displayed correctly when using `rake routes`. This commit fixes it. If you want nice display of dynamic constraints in `rake routes` output, please just override to_s method in your constraint's class.
-
- 24 12月, 2011 1 次提交
-
-
由 Vasiliy Ermolovich 提交于
-
- 16 12月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 30 11月, 2011 1 次提交
-
-
由 Aviv Ben-Yosef 提交于
`path_names` can only be used for affecting `new` and `edit`
-
- 20 11月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
This reverts commit 3178cc9a.
-
- 19 11月, 2011 8 次提交
-
-
由 Arun Agrawal 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-