6.2 /destinations/:id should route to destinations#show


#1

Hello everybody! Could you help me, please?
I get the error: /destinations/:id should route to destinations#show

Rails.application.routes.draw do
  get '/tags' => 'tags#index'
  get '/tags/:id' => 'tags#show', as: :tag
  get '/destinations/:id' => 'destinations#show', as: :destination
end

What am I doing wrong? Thanks!


#2

For some reason the Destination controller hasn't been generated. I reloaded the page and generated it again. Now it works :slight_smile:


#3

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.