开发者

Russian in link_to in RoR

开发者 https://www.devze.com 2023-03-06 13:49 出处:网络
I am having trouble using Russian in link_to... RoR displays some bad chars... Encoding is UTF-8 (in db and database.yml and application.rb)

I am having trouble using Russian in link_to... RoR displays some bad chars...

Encoding is UTF-8 (in db and database.yml and application.rb)

more info:

ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8):
       2:   <%= v.theme %><br />
       3: <% end %>
       4:   
       5: <%= link_to 'Проверка', :controller=>'blog开发者_运维知识库', :action=>'list' %>
     app/views/blog/list.html.erb:5:in    `_app_views_blog_list_html_erb__213318138_91664950_691435151'
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号