fix for translations

This commit is contained in:
Harry Bomrah 2014-11-26 16:21:35 +08:00
parent 06e5e37c0b
commit 8e25b284df
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ class Desktop::JournalPapersController < DesktopAdminController
{
"title" => "Add/Edit",
"layout" => "form",
"new_file_attributes" => "journal_paper[journal_paper_files_attributes][{number}][journal_file]",
"new_file_attributes" => {
"file" => "journal_paper[journal_paper_files_attributes][{number}][journal_file]",
"title" => "journal_paper[journal_paper_files_attributes][{number}][title_translations][en]"
}
"new_path" => "/admin/members/#{user.member_profile.to_param}/journal_papers/new"
}
]