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

Ticket #8344 (closed defect: invalid)

Opened 1 year ago

Last modified 1 year ago

url_for returns a url in all lower case..

Reported by: sergio_101 Assigned to: core
Priority: high Milestone: 1.2 regressions
Component: ActionPack Version: edge
Severity: normal Keywords: url_for lower case
Cc:

Description

i have been using url_for in several applications, and during one of the updates, it stopped working...

here is an example of this behavior:

app.url_for(:controller => "audio/NS/MiXeDcAse")

=> "http://www.example.com/audio/ns/mixedcase"

this should give me:

http://www.example.com/audio/NS/MiXeDcAse

this has caused several apps to break..

Change History

05/11/07 19:44:56 changed by sergio_101

  • milestone changed from 1.x to 1.2 regressions.

05/12/07 04:31:13 changed by ulysses

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

Controllers passed to url_for should use underscored, not camelized, format, ie. 'audio/n_s/mi_xe_dc_ase'