Using %i and %I symbol array literal

前端 未结 2 1008
太阳男子
太阳男子 2021-02-18 13:58

Reading through a list of Rails questions, I\'m having trouble finding what the %i does in relation to a symbol array. Does this mean anything to anyone?

2条回答
  •  野性不改
    2021-02-18 14:18

    I'm having trouble finding what the %i does in relation to a symbol array.

    It is an array literal for an array of symbols. It does the same thing in relation to symbol arrays as ' does to strings.

提交回复
热议问题