I have a model called Project and I ve defined the "to_param" method as this:
def to_param
permalink
end
I am using this permalink plugin github.com/febuiles/make_permalink so when I call p.permalink it will generate id-name.
The problem is that when I TYPE /projects/1 in my web-browser the URL doesn t change to /projects/1-name. How can I achieve that?
Look that when I go to http://railscasts.com/episodes/63 the URL changes to /63-name
Any suggestions?
Thanks in advance