Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #883 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[PATCH] Routes: *path items should use arrays

Reported by: ulysses Assigned to: ulysses
Priority: normal Milestone:
Component: ActionPack Version: 0.10.0
Severity: normal Keywords: routes *path_info array
Cc: David

Description

Items which are marked with a * in map.connect now use an Array to return the result. A shorthand is available: array.to_s => array.join('/').

In addition, you can now give url_for an array which it treats as expected.

Attachments

route_paths_as_arrays.patch (2.8 kB) - added by Ulysses on 03/20/05 23:58:19.
Patch as discussed above
route_paths_as_arrays.2.patch (3.4 kB) - added by Ulysses on 03/21/05 00:24:19.
Second try (diff against head)
route_paths_as_arrays.3.patch (3.4 kB) - added by Ulysses on 03/21/05 00:36:32.
Third times the charm

Change History

03/20/05 23:58:19 changed by Ulysses

  • attachment route_paths_as_arrays.patch added.

Patch as discussed above

03/21/05 00:24:19 changed by Ulysses

  • attachment route_paths_as_arrays.2.patch added.

Second try (diff against head)

03/21/05 00:36:32 changed by Ulysses

  • attachment route_paths_as_arrays.3.patch added.

Third times the charm

03/21/05 00:40:56 changed by david

  • status changed from new to closed.
  • resolution set to fixed.