SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing semicolon in URL to a slash?

    I noticed when using map.resources, extra methods/actions become appended to the URL after a semicolon. I think this is fairly ugly and I was wondering if there is any way to make that a slash?
    Happy switcher to OS X running on a MacBook Pro.

    Zend Certified Engineer

  2. #2
    SitePoint Zealot
    Join Date
    Dec 2006
    Location
    England, UK
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do you mean force the semicolon to display as a forward slash? i am fairly unfamiliar with this, but i think that changing it is likely to cause a few problems .. .. btw, it is almost certainly configurable within php.ini or using ini_set (i dont remember the exact code) within a script to manually override the php.ini settings

  3. #3
    SitePoint Guru silver trophy Luke Redpath's Avatar
    Join Date
    Mar 2003
    Location
    London
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kwah he's talking about Rails, not PHP. Please pay attention

  4. #4
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think there is a way to do this because it is hard coded in actionpack/lib/action_controller/resources.rb:

    Code:
    "#{resource.path};#{action}"
    You can change the source of course. Just do freeze_edge and change it in vendor/rails.

  5. #5
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much! I couldn't find where it was in the source. Thank you for pointing it out
    Happy switcher to OS X running on a MacBook Pro.

    Zend Certified Engineer

  6. #6
    SitePoint Zealot
    Join Date
    Dec 2006
    Location
    England, UK
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Luke Redpath View Post
    kwah he's talking about Rails, not PHP. Please pay attention
    err, oops?
    lol sorry for that - im half asleep a lot of the time


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •