To pass the validate_presence_of :permalink on unit test I prefere to make the permalink before_validation. Also if I generate a permalink for a row I'll never change it, because it's used to link data.
To pass the validate_presence_of :permalink on unit test I prefere to make the permalink before_validation. Also if I generate a permalink for a row I'll never change it, because it's used to link data.
lleirborras/simple_permalink