- 27 7月, 2012 1 次提交
-
-
由 Anatoly Makarevich 提交于
-
- 25 7月, 2012 1 次提交
-
-
由 Lucas Mazza 提交于
-
- 24 7月, 2012 1 次提交
-
-
由 Santiago Pastorino 提交于
Closes #7110 there's more work to do on rack-cache issue 69
-
- 22 7月, 2012 3 次提交
-
-
由 Vasiliy Ermolovich 提交于
we don't need to escape values in this method as we pass these html attributes to `tag_options` method that handle escaping as well. it fixes the case when we want to pass html5 data options
-
-
-
- 21 7月, 2012 2 次提交
-
-
由 Xavier Noria 提交于
- 20 7月, 2012 4 次提交
-
-
由 Brian John 提交于
-
由 Andrew White 提交于
Since #5581 added support for resources with custom params we should not assume that it is :id when using shallow resource routing.
-
由 Andrew White 提交于
The Mapper looks for a :id constraint in the scope to see whether it should apply a constraint for nested resources. Since #5581 added support for resource params other than :id, we need to check for a constraint on the parent resource's param name and not assume it's :id.
-
由 Sytse Sijbrandij 提交于
-
- 19 7月, 2012 1 次提交
-
-
由 Shigeya Suzuki 提交于
- #respond_to's documentation refer to .respond_to, but it was written as just <respond_to>. Added class name for clarification.
-
- 18 7月, 2012 5 次提交
-
-
由 Carlos Galdino 提交于
This applies to the following helpers: `button_to` `button_tag` `image_submit_tag` `link_to` `submit_tag`
-
由 Sergey Pchelincev 提交于
-
由 Dmitry Vorotilin 提交于
-
由 Andrew White 提交于
Optional segments with a root scope need to have the leading slash outside of the parentheses, otherwise the generated url will be empty. However if the route has non-optional elements then the leading slash needs to remain inside the parentheses otherwise the generated url will have two leading slashes, e.g: Blog::Application.routes.draw do get '/(:category)', :to => 'posts#index', :as => :root get '/(:category)/author/:name', :to => 'posts#author', :as => :author end $ rake routes root GET /(:category)(.:format) posts#index author GET (/:category)/author/:name(.:format) posts#author This change adds support for optional segments that contain a slash, allowing support for urls like /page/2 for the root path, e.g: Blog::Application.routes.draw do get '/(page/:page)', :to => 'posts#index', :as => :root end $ rake routes root GET /(page/:page)(.:format) posts#index Fixes #7073
-
由 kennyj 提交于
-
- 13 7月, 2012 2 次提交
-
-
由 Wojciech Wnętrzak 提交于
-
由 Evan Travers 提交于
fixing a misspelling in the documentation
-
- 11 7月, 2012 4 次提交
-
-
由 Selem Delul 提交于
-
由 Piotr Sarnacki 提交于
When someone sends malformed authorization header, like: Authorization: Token foobar given token should be just ignored and resource should not be authorized, instead of raising error. Before this patch controller would return 401 header only for well formed tokens, like: Authorization: Token token=foobar and would return 500 in former case.
-
由 Carl Lerche 提交于
-
由 Rusty Geldmacher 提交于
When a select tag is created for a field with errors, then the inserted options will errantly have a <div class="field_with_errors"> wrapping them.
-
- 10 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
minitest/spec provides `describe`, so deprecate the rails version and have people use the superclass version
-
- 09 7月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Follow the consistency defined in dbc43bcc.
-
- 08 7月, 2012 2 次提交
-
-
由 @schneems and @mattt 提交于
this is so we can show route output in the development when we get a routing error. Railties can use features of ActionDispatch, but ActionDispatch should not depend on Railties.
-
由 schneems 提交于
If someone receives a routing error, they likely need to view the routes. Rather than making them visit '/rails/info/routes' or run `rake routes` we can give them that information on the page.
-
- 07 7月, 2012 3 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 kennyj 提交于
-
由 Mircea Pricop 提交于
Assuming the type ":touch", Collector.new was calling send(:touch), which instead of triggering method_missing and generating a new collector method, actually invoked the private method `touch` inherited from Object. By generating the method for each mime type as it is registered, the private methods on Object can never be reached by `send`, because the `Collector` will have them before `send` is called on it. To do this, a callback mechanism was added to Mime::Type This allows someone to add a callback for whenever a new mime type is registered. The callback then gets called with the new mime as a parameter. This is then used in AbstractController::Collector to generate new collector methods after each mime is registered.
-
- 06 7月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
This reverts commit 9669f6f7. This breaks Sam Ruby's tests for some reason. Revert until we figure it out.
-
- 04 7月, 2012 8 次提交
-
-
由 François de Metz 提交于
Signed-off-by: NFrançois de Metz <francois@stormz.me>
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
instead of deleting keys on every instantiation, create defaults we actually use. eventually we can pass an environment in to the request, and create a new req / res object on each call.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-