开发者

rails, yml, & multiline

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜