for Ruby on rails