Update get 'pages/index' in routes.rb to get '/pages/index', to: 'pages#index'