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


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

What am I doing wrong? Thanks!


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


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