开发者

rails, yml, & multiline

开发者 https://www.devze.com 2023-02-14 05:30 出处:网络
i cannot for the life of me get multiline yaml from my locale files to work. i have tried every combination of multiple solutions with no success.

i cannot for the life of me get multiline yaml from my locale files to work.

i have tried every combination of multiple solutions with no success.

i have tried key: |, key: >, with double quotes, with singles quotes, with \n, with the value on the next line, indented, and probabl开发者_StackOverflow社区y some others.

and in my view i am just using t('key')

im tearing my hair out over here. any other suggestions or possible reasons the default yaml specs for multiline values are not working?


From some fooling around in irb, it looks like you might want:

key: |-
  abc
  def
0

精彩评论

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