make library for ruby on rails