midify checkbox value

This commit is contained in:
Rueshyna 2012-11-18 14:15:00 +08:00 committed by chris
parent 5eb8cc4063
commit a3edebce6a
1 changed files with 3 additions and 4 deletions

View File

@ -62,9 +62,9 @@
<li>
<%= check_box_tag "writing_journal[journal_level_type_ids][]",
level_type.id,
@writing_journal.journal_level_type_ids.include?(level_type.id)
@writing_journal.journal_level_type_ids.include?(level_type.id),
id: "field-#{i}"
%><%= label_tag("field-#{i}", level_type.title) %>
<%= hidden_field_tag "field-#{i}", '' %>
</li>
<% end %>
</ul>
@ -153,9 +153,8 @@
<%= label_tag("", "Full Text", class: "s_grid_2 s_grid") %>
</li>
<li class="s_grid_row">
<%= f.file_field :file, size: "20", class: "s_grid_4 s_grid"%>
<%= f.file_field :writing_journal_files, size: "20", class: "s_grid_4 s_grid"%>
</li>
<li class="s_grid_row">
<%= f.text_area :note, size: "20x2", value: "Note", class: "s_grid_6 s_grid"%>
</li>