fix activerecord url