Ruby on Rails without using view