Pretty url

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

self.permalink = “#{now.year}/#{now.month}/#{}/#{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:

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]

My home:

url_for or what not

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs