Mat*_*iby 0 ruby-on-rails link-to ruby-on-rails-3
这是我的link_to
<%= link_to "<input type='button', value='Somewhere', class ='big'/>".html_safe, selection_path %>
Run Code Online (Sandbox Code Playgroud)
但是在IE中它不起作用......它的渲染
<a href="/selection"><input class="big" value="Somewhere" type="button" ,=""></a>
Run Code Online (Sandbox Code Playgroud)
所以链接中断了......任何关于如何修复的想法
使用button_to而不是在link_to中放置一个按钮:
<%= button_to "Somewhere", selection_path, :method => :get %>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
74 次 |
| 最近记录: |