Rails3: view: html_safe for my/page_layout.html.erb
Contributed by Sylvain Utard. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8452 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2b2eeb0192
commit
29edbd605b
|
@ -37,7 +37,9 @@ function removeBlock(block) {
|
|||
<div class="contextual">
|
||||
<% form_tag({:action => "add_block"}, :id => "block-form") do %>
|
||||
<%= label_tag('block-select', l(:label_my_page_block)) %>:
|
||||
<%= select_tag 'block', "<option></option>" + options_for_select(@block_options), :id => "block-select" %>
|
||||
<%= select_tag 'block',
|
||||
"<option></option>".html_safe + options_for_select(@block_options),
|
||||
:id => "block-select" %>
|
||||
<%= link_to_remote l(:button_add),
|
||||
{:url => { :action => "add_block" },
|
||||
:with => "Form.serialize('block-form')",
|
||||
|
|
Loading…
Reference in New Issue