0
레일 프로젝트에서 i18n을 개선하려고합니다. 탐색이 이미 정상적으로 작동하지만 양식이있는 버그가 있습니다.네임 스페이스의 i18n과 양식 오류가 발생했습니다.
설정/routes.rb
map.namespace :admin, :path_prefix => '/:locale/admin' do |admin|
admin.resources :titles
end
map.connect ':locale/:controller/:action/:id'
map.connect ':locale/:controller/:action/:id.:format'
응용 프로그램/조회/관리/제목/_form.html.haml
- form_for([:admin, title], :url => {:id => title}) do |f|
양식이 올바른 기록을로드, 내가 올바른 정보를 볼 수 있지만 때 내가이 오류를 제기 (조치 후) 저장
ActiveRecord::RecordNotFound in Admin/titlesController#1
{"commit"=>"Submit",
"title"=>{"price"=>"69.95",
"title"=>"Java How to Program",
"isbn"=>"0130125075",
"available"=>"0",
"copyright"=>"2000",
"author_id"=>"1",
"edition"=>"3",
"publisher_id"=>"1"},
"_method"=>"put",
"authenticity_token"=>"PmuWctSaS2JXYIG8EdjS9Y7VOK48sThiOTSn+4+gHLY=",
"id"=>"edit",
"locale"=>"en"}
내가 뭘 잘못하고있어?