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

Ticket #9563 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

map.root should generate a root_path method that uses "/" not ""

Reported by: david Assigned to: core
Priority: normal Milestone:
Component: ActionPack Version: edge
Severity: normal Keywords: rails2
Cc:

Description

root_path will return "" instead of "/" when map.root has been specified. That will just lead the browser to the current page, not the root. root_url is fine, though.

Attachments

fix_root_path.patch (1.6 kB) - added by lifofifo on 09/15/07 19:44:01.

Change History

09/15/07 19:44:01 changed by lifofifo

  • attachment fix_root_path.patch added.

09/15/07 20:38:44 changed by bitsweat

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

(In [7482]) root_path returns '/' not . Closes #9563.