route problems in ruby on rails

1

in the routes file

Rails.application.routes.draw do

    root 'pages#home'
    get 'about', to: 'pages#about'
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end

But when I type the URL it generates a problem as in the figure below;

Did I type something wrong in the routes file?

    
asked by anonymous 22.05.2017 / 13:41

1 answer

1

Your route is ok. The problem that appears appears to be in the controller, or it has not been defined or has a different naming. Check the name of your controller and correct it in your route.

If you have problems, edit your question and put your controllers to help with the diagnosis.

    
22.05.2017 / 13:44