fixed paper title and journal title bug

This commit is contained in:
Rueshyna 2013-03-04 11:45:39 +08:00
parent 4bc3a57862
commit e99fef9404
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@
class: "s_grid_6 s_grid",
size: "20x2",
placeholder: t("personal_journal.paper_title"),
value: (@writing_journal.paper_title_translations[locale] rescue nil) %>
value: (@writing_journal.paper_title_translations[locale.to_s] rescue nil) %>
<% end %>
</li>
<li class="s_grid_row">
@ -43,7 +43,7 @@
placeholder: t("personal_journal.journal_title"),
class: "s_grid_6 s_grid",
"autocomplete-list" => "journal_title_autocomplete_list",
value: (@writing_journal.journal_title_translations[locale] rescue nil) %>
value: (@writing_journal.journal_title_translations[locale.to_s] rescue nil) %>
<% end %>
<span class="icon-plus input_append"></span>
</li>
@ -94,7 +94,7 @@
size: "20x2",
placeholder: t("personal_journal.authors"),
"autocomplete-list" => "coauthor_autocomplete_list",
value: (@writing_journal.authors_translations[locale] rescue nil) %>
value: (@writing_journal.authors_translations[locale.to_s] rescue nil) %>
<% end %>
<span class="icon-plus input_append"></span>
</li>