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?
| SitePoint Sponsor |



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?

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
kwah he's talking about Rails, not PHP. Please pay attention![]()




I don't think there is a way to do this because it is hard coded in actionpack/lib/action_controller/resources.rb:
You can change the source of course. Just do freeze_edge and change it in vendor/rails.Code:"#{resource.path};#{action}"



Thank you very much! I couldn't find where it was in the source. Thank you for pointing it out![]()

Bookmarks