Failure/Error: visit '/static_pages/about' ActionController::RoutingError:

Hi

When i run static_page_rspec file()

displayed error: Failure/Error: visit ‘/static_pages/contact’
ActionController::RoutingError:
No route matches [GET] “/static_pages/contact”

Its routes.rb:

et ‘/’ => ‘pets#index’

match ‘/contact’, to: ‘static_pages#contact’, via: ‘get’
match ‘/about’, to: ‘static_pages#about’, via: ‘get’
match ‘/faq’, to: ‘static_pages#faq’, via: ‘get’

resources :kinds
resources :pets

How solve this problem?

Thank you

This syntax in book tutorial rails 4.0.

OK. thank you

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs