1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
schneems ba0695f48a Fix named routing regression from 3.2.13
When named route that is nested is used in 3.2.13

Example `routes.rb`:

```
resources :nested do
  resources :builder, :controller => 'nested/builder'
end
```

In 3.2.12 and 3.2.12 this named route would work:

```
nested_builder_path(:last_step, :nested_id => "foo")
```

Generating a url that looks like `/nested/foo/builder/last_step`. This PR fixes the regression when building urls via the optimized helper. Any explicit keys set in the options are removed from the list of implicitly mapped keys.

Not sure if this is exactly how the original version worked, but this fixes this use case regression.
2013-05-16 18:42:15 -03:00
..
abstract Avoid leak into controller's action_methods 2013-04-18 20:03:31 +04:00
activerecord fix db_runtime attribute value after raising ActionView::MissingTemplate exception 2013-02-27 16:35:22 +02:00
assertions
controller Revert "Integration tests support the OPTIONS http method" 2013-05-16 14:41:36 -03:00
dispatch Fix named routing regression from 3.2.13 2013-05-16 18:42:15 -03:00
fixtures Allow numbers in partial name for digesting 2013-05-06 18:30:29 -07:00
journey Make ActionDispatch::Journey::Path::Pattern#new raise more meaningful exception message. 2013-02-27 08:26:51 +08:00
lib/controller
routing
template restore ability to return nil from asset_host proc, add test 2013-05-15 09:07:46 -05:00
tmp
abstract_unit.rb remove unused variable and assignment 2013-03-31 19:34:40 +05:30
active_record_unit.rb we're not supporting SQLite 2 2012-12-24 12:23:39 +09:00
ts_isolated.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00