bit.ly clone with activerecord