RailsCasts Pro episodes are now free!

Learn more or hide this

César Camacho's Profile

GitHub User: chanko

Comments by César Camacho


I have a question about the history feature.

I implemented it on one of my models, but it seems that it only keeps a history of the original slug, even after every edit. Is this how it's supposed to work?

Say I have a title of "Hello World" which generates a slug "hello-world"

If I edit this to "Hello World 2" and then eventually to "Hello World 3", am I supposed to have all 3 history changes, or just the original?

hello-world - original works
hello-world-2 - doesn't work <-- does this not get stored?
hello-world-3 - latest works