1
레일 4 및 18n. 내가I18n 경로 : 필수 키 누락 : [: 로켈]
conversation_path(locale: :de, 1)
같은 경로가 나에게
No route matches {:action=>"show", :controller=>"frontend/conversations", :id=>1, :locale=>:de} missing required keys: [:locale]
routes.rb
scope '/:locale' do
localized do
scope module: 'frontend' do
resources :conversations, only: [:index, :show]
end
end
end
레이크 경로를 말하는 오류를 제공 전화
나에게
conversation_de GET /:locale/conversations/:id(.:format) frontend/conversations#show {:locale=>"de"}
conversation_en GET /:locale/conversations/:id(.:format) frontend/conversations#show {:locale=>"en"}
을 제공합니다
내가 놓친 것이 있습니까?
작품, 감사합니다. – yaster