<%= Rails.application.class.parent %>::Application.routes.draw do get "pages/home" root :to => 'pages#home' resources :<%= "#{@model}_sessions" %>, as: :user_sessions resources :<%= @models %>, as: :users match 'login' => '<%= "#{@model}_sessions" %>#new', :as => :login match 'logout' => '<%= "#{@model}_sessions" %>#destroy', :as => :logout end