rails 3 partial depending on locale
I am developing a rails 3 app for 2 locales (:e开发者_StackOverflow社区n, :kr).
I have 2 view files:
index.en.html.haml
index.kr.html.haml
And each file uses partial.
_info.en.html.erb
_info.kr.html.erb
(Partials are erb instead of haml)
= render :partial => "info"
This always uses _info.en.html.erb ignoring locale.
Partial can't be auto-selected for locales?
Thanks.
Try
= render :partial => "info"
精彩评论