摘要:
http://ruby-doc.org/core-2.2.0/Array.html#method-i-compact compact → new_aryclick to toggle source Returns a copy of self with all nil elements remove 阅读全文
posted @ 2016-04-25 17:48
冰凌花花~
阅读(155)
评论(0)
推荐(0)
摘要:
http://docs.ruby-lang.org/en/2.0.0/Hash.html 阅读全文
posted @ 2016-04-25 17:43
冰凌花花~
阅读(293)
评论(0)
推荐(0)
摘要:
Select2 插件官网:https://select2.github.io/ Select2 初始化说明: 代码在 public/javascripts/subchannel_items.js 中的 $("#subchannel_item_showable_id").select2 行。 sele 阅读全文
posted @ 2016-04-25 10:43
冰凌花花~
阅读(206)
评论(0)
推荐(0)
摘要:
- validates :name, presence: true, uniqueness: { conditions: -> { where(:state.ne => 2) } }, length: { maximum: 9 } + validates :name, presence: true, length: { maximum: 9 } validates :name, pre... 阅读全文
posted @ 2016-04-25 10:31
冰凌花花~
阅读(123)
评论(0)
推荐(0)

浙公网安备 33010602011771号