route problems in ruby on Rails

Asked

Viewed 105 times

1

in the file Routes

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 creates a problem as in the figure below;inserir a descrição da imagem aqui

Did I type something wrong in the file Routes?

1 answer

1


Your route is ok. The problem appears to be in the controller, either it has not been set or it is with different nomenclature. Check your controller name and correct on your route.

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

  • 1

    sorry, I am still learning to program in Ruby on Rails, I am studying with courses that do not speak in Portuguese, it is difficult to find good materials of courses in Portuguese, but this helped and solved my question the problem really was the controller.

  • 1

    No need to apologize @wladyband, this place is exactly for you to ask questions, you are on the right track. If the answer helped you mark it as correct (this "v" below the counter). Needing we will always be here to help. Good studies.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.