- 28 5月, 2015 2 次提交
-
-
由 Mehmet Emin İNAÇ 提交于
`head` method works similar to `render` method with `:nothing` option
-
由 Eliot Sykes 提交于
Set `config.static_index` to serve a static directory index file not named `index`. For example, to serve `main.html` instead of `index.html` for directory requests, set `config.static_index` to `"main"`.
-
- 23 5月, 2015 1 次提交
-
-
由 karanarora 提交于
spelling fix [ci skip] example to be consistent [ci skip] grammatical fix typo fixes [ci skip]
-
- 16 5月, 2015 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
-
- 07 5月, 2015 1 次提交
-
-
由 Anton Davydov 提交于
-
- 27 4月, 2015 1 次提交
-
-
由 Arthur Neves 提交于
[see #18392]
-
- 22 4月, 2015 1 次提交
-
-
由 Yves Senn 提交于
-
- 14 4月, 2015 1 次提交
-
-
由 Kevin McPhillips 提交于
-
- 06 4月, 2015 1 次提交
-
-
由 Stephen Bussey 提交于
-
- 25 3月, 2015 2 次提交
-
-
由 Arthur Neves 提交于
-
由 George Claghorn 提交于
Closes #18933.
-
- 21 3月, 2015 1 次提交
-
-
由 adam 提交于
Previously, an empty X_FORWARDED_HOST header would cause Actiondispatch::Http:URL.raw_host_with_port to return nil, causing Actiondispatch::Http:URL.host to raise a NoMethodError.
-
- 15 3月, 2015 1 次提交
-
-
由 Mike Naberezny 提交于
-
- 05 3月, 2015 1 次提交
-
-
由 Aaron Patterson 提交于
If you would like to use a custom request class, please subclass and implemet the `request_class` method.
-
- 26 2月, 2015 2 次提交
-
-
由 Guo Xiang Tan 提交于
Partitioning of all the routes is currently being done during the first request. Since there is no need to clear the cache for `partitioned_routes` when adding a new route. We can move the partitioning of the routes during setup time.
-
由 Yves Senn 提交于
-
- 25 2月, 2015 1 次提交
-
-
由 Yasyf Mohamedali 提交于
Fixed an issue where the `RAILS_RELATIVE_URL_ROOT` environment variable is not prepended to the path when `url_for` is called. If `SCRIPT_NAME` (used by Rack) is set, it takes precedence.
-
- 24 2月, 2015 2 次提交
-
-
由 Iain Beeston 提交于
As part of #19029, in future `skip_before_action`, `skip_after_action` and `skip_around_action` will raise an ArgumentError if the specified callback does not exist. `skip_action_callback` calls all three of these methods and will almost certainly result in an ArgumentError. If anyone wants to remove all three callbacks then they can still call the three individual methods. Therefore let's deprecate `skip_action_callback` now and remove it when #19029 is merged.
-
由 brainopia 提交于
Change filter on /rails/info/routes to use an actual path regexp from rails and not approximate javascript version. Oniguruma supports much more extensive list of features than javascript regexp engine. Fixes #18402.
-
- 23 2月, 2015 1 次提交
-
-
由 Yves Senn 提交于
-
- 21 2月, 2015 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 David Ilizarov 提交于
-
- 16 2月, 2015 1 次提交
-
-
由 Arthur Neves 提交于
Add http_cache_forever to ActionController, so we can cache results forever. Things like static pages are a good candidate for this type of caching. This cache only controls caching headers, so it is up to the browser to cache those requests.
-
- 13 2月, 2015 1 次提交
-
-
由 Ville Lautanala 提交于
Non-string authenticity tokens raised NoMethodError when decoding the masked token.
-
- 12 2月, 2015 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 11 2月, 2015 1 次提交
-
-
由 claudiob 提交于
The methods `fresh_when` and `stale?` from ActionController::ConditionalGet accept a single record as a short form for a hash. For instance ```ruby def show @article = Article.find(params[:id]) fresh_when(@article) end ``` is just a short form for: ```ruby def show @article = Article.find(params[:id]) fresh_when(etag: @article, last_modified: @article.created_at) end ``` This commit extends `fresh_when` and `stale?` to also accept a collection of records, so that a short form similar to the one above can be used in an `index` action. After this commit, the following code: ```ruby def index @article = Article.all fresh_when(etag: @articles, last_modified: @articles.maximum(:created_at)) end ``` can be simply written as: ```ruby def index @article = Article.all fresh_when(@articles) end ```
-
- 09 2月, 2015 1 次提交
-
-
由 Terence Sun 提交于
In match_head_routes, deleted the routes in which request.request_method was empty (matches all HTTP verbs) when responding to a HEAD request. This prevents catch-all routes (such as Racks) from intercepting the HEAD request. Fixes #18698
-
- 01 2月, 2015 1 次提交
-
-
由 Kir Shatrov 提交于
in `ActionController::TestCase` and `ActionDispatch::Integration` Old syntax: `xhr :get, :create, params: { id: 1 }` New syntax example: `get :create, params: { id: 1 }, xhr: true`
-
- 31 1月, 2015 1 次提交
-
-
由 Yves Senn 提交于
-
- 29 1月, 2015 4 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Kir Shatrov 提交于
Non-kwargs requests are deprecated now. Guides are updated as well. `post url, nil, nil, { a: 'b' }` doesn't make sense. `post url, params: { y: x }, session: { a: 'b' }` would be an explicit way to do the same
-
由 Tekin Suleyman 提交于
Fixes an issue that would cause default_url_options to be lost when generating URLs with fewer positional arguments than parameters in the route definition.
-
由 Rafael Mendonça França 提交于
-
- 22 1月, 2015 3 次提交
- 10 1月, 2015 1 次提交
-
-
由 Yves Senn 提交于
-
- 09 1月, 2015 3 次提交
-
-
由 Jonas Baumann 提交于
-
由 Abdelkader Boudih 提交于
-
由 David Heinemeier Hansson 提交于
-