Rails route appears in routes but throws a 404
问题 I'm trying to add a simple route to an existing controller/action but strangely I'm getting a 404 error even though the route appears to exist. Here's the relevant section of my routes.rb : # Wines scope 'wine' do get '/', to: 'wines#index', as: 'wine_index' get '/:collection', to: 'wines#collection_detail', as: 'collection_detail' get '/:collection/:slug', to: 'wines#wine_detail', as: 'wine_detail' get '/:style', to: 'wines#style_detail', as: 'style_detail' end It seems correct because here