On 29-jun-2006, at 4:21, Wilson Bilkovich wrote:

I did this during RailsConf, while browsing the routing source:
http://dev.rubyonrails.org/ticket/5507

I showed it to Nicholas on IRC, and he wondered why it didn't just use
Pathname#cleanpath from the standard library, rather than reinventing
it.
That seemed like a good question to me, so I rewrote normalize_paths
to make use of that feature.

I wondered about it when this feature was introduced, and I found that even the ole File.expand_path works better - but I thought it was the intention to normalize Windoze paths shal this need arise. But I got the same question - why so much code :-)

--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl


_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to