Rails.application.routes.draw do root 'application#index' get 'login/new', to: 'login#new' post 'login', to: 'login#create' resources :sites do resources :posts get 'i18n', to: 'i18n#index' get 'i18n/edit', to: 'i18n#edit' post 'i18n', to: 'i18n#update' end end