多语言化的问题 求解
forum_url failed to generate from {:action=>"show", :controller=>"forums", :id=>#<Forum id: 4, site_id: 1, name: "啊啊啊啊啊", description: "顶顶顶顶顶顶", topics_count: 0, posts_count: 0, position: 4, description_html: "<p>顶顶顶顶顶顶</p>", state: "public", permalink: "">}, expected: {:controller=>"forums", :action=>"show"}, diff: {:id=>#<Forum id: 4, site_id: 1, name: "啊啊啊啊啊", description: "顶顶顶顶顶顶", topics_count: 0, posts_count: 0, position: 4, description_html: "<p>顶顶顶顶顶顶</p>", state: "public", permalink: "">}
Extracted source (around line #39):
36: <% end %>
37: </td>
38: <td class="c2 vat">
39: <%= link_to h(forum.name), forum_path(forum), :class => "title" %>
40: <div class="posts">
41: <%= I18n.t 'txt.count_topics', :count => forum.topics.size, :num => number_with_delimiter(forum.topics.size) %>,
42: <%= I18n.t 'txt.count_posts', :count => forum.posts.size, :num => number_with_delimiter(forum.posts.size) %>
我如果输入英文就没这问题 我只知道定数使用i18n 具体输入的东西是否也能用i18n呢 求解
[解决办法]
你是说输入的值!