Pretty url

I want to write a permalink like /year/month/day/title, code is as
follows:

self.permalink = “#{now.year}/#{now.month}/#{now.day}/#{title}”

in the view, I use restful url post_path(@post). And in the html source
code, the url is /posts/2008%2F4%2F30%2FTest

You can see, the ‘/’ is replaced by “%2F”, which is not I expect.
How not to replace the ‘/’ with “%2F”?


My home: http://flyerhzm.com

use url_for or just hard code it into the view [?]

2008/4/30 huang zhimin [email protected]:

is there any graceful method?

On Wed, Apr 30, 2008 at 10:47 PM, Roger P. [email protected]
wrote:


My home: http://flyerhzm.com

url_for or what not

2008/4/30 huang zhimin [email protected]: