This project is archived and is in readonly mode.

#4162 ✓duplicate
anonymouse

Rails.public_path evaluates to a String instead of a Pathname

Reported by anonymouse | March 12th, 2010 @ 03:43 PM

Rails.public_path evaluates to a String instead of a Pathname. Since Rails.env evaluates to a Pathname, it would make sense to make this behavior consistent between the two.

I actually found out about this in the article "The Rails Module (in Rails 3)" by Nick Quaranto (http://litanyagainstfear.com/blog/2010/02/03/the-rails-module/) and figured it would be worth posting a ticket for it here.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages