I have a controller posts: www.mydomain.com/posts/123-hello
Please bear in mind that the 123 is unique for each post but is not the correlative id (post.permalink)
I want to access the posts through addresses like:
www.mydomain.com/is/123-hello
not
www.mydomain.com/posts/123-hello
I have a to_param
in my Post model to construct the "123-hello", but when I use redirect_to @post
I end in www.mydomain.com/posts/123-hello
How can I do this? Thanks in advance!