Refactored routes.rb
Added rails best practices