专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Ruby/Rails

多语言化的有关问题 求解

发布时间:2011-06-29 18:42:28 文章来源:www.iduyao.cn 采编人员:星星草
多语言化的问题 求解
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呢 求解

------解决方案--------------------
你是说输入的值!
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: