fix category url with activerecord