サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Wikipedia
dev.relatel.dk
Taking control of YAML loading — Or what happened to my ActionController::Parameters YAML Aug 2 2016 In Rails 5 ActionController::Parameters no longer inherits from Ruby’s Hash. This broke loading YAML serialized from older Rails versions. Let’s find out why! First, here’s what the serialization some params looks like in Rails 5. We’ll be using YAML.dump ActionController::Parameters.new(key: :valu
Jun 23 2015 You’re probably familiar with Ruby’s splat operator (here’s help if you’re not), but since Ruby 2.0 debuted keyword arguments, its method definitions grew a new limb: double splats. Double splats mean two things and they’re inverses of each other. If you double splat a hash, you get a comma separated list of symbol keys and values. If you double splat a list, you get a hash - exactly l
May 19 2015 For Rails 5 we’re massively speeding up rendering collections of cached partials. Check this out: That’s for a template with a simulated render time of at least 30 ms using the Active Support file cache store. On average the cached renders were 55 times faster. It started simple enough. A plea for integrating a gem into Rails. By merging the multi_fetch_fragments gem, we could do <%= r
このページを最初にブックマークしてみませんか?
『dev.relatel.dk』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く