我必须使用 yml 文件本地化网站。但我遇到以下问题:
<tr>
<td><%= link_to author.name, :action => 'show', :id => author %></td>
<td><%= link_to 'Edit', :action => 'edit', :id => author %></td>
<td>
<%= button_to t(:delete), {:action => 'destroy', :id => author},
{:method => :delete,
:confirm => "Are you sure you want to delete author #{author.name}?"} %>
:confirm => t(:sure_delete_author, :authorname=>#{author.name}) } %>
</td>
</tr>
t(:delete)
正常工作,但确认没有。留下原来的和不工作的。