Project handler in Ruby on Rails