1
我必须使用yml文件本地化一个网站。但我有问题,以下内容:Ruby on Rails本地化
<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)
的作品,因为它应该,但确认没有。留下原来的和不工作的。
你应该删除线#7 – NARKOZ 2013-05-14 07:49:23
7号线的作品,8不。我刚刚离开了7,这样你就可以看到8要做什么了,但是它会在第10行得到一个错误。 – MustSeeMelons 2013-05-14 07:56:41