What have you found for these years?


wtf rails notes (0)

> rib auto
rib-auto: Found Rails, loading it...
Loading development environment (Rails 3.1.3)

# global side-effect whenever `Rails.cache.read`
# previously (rails 2), this only happens in memory cache, not in memcache

>> 1.frozen?
=> false

>> Rails.cache.class
=> ActiveSupport::Cache::DalliStore

>> Rails.cache.write('key', 1)
=> true
>> 1.frozen?
=> false
>> Rails.cache.read('key')
=> 1

>> 1.frozen?
=> true

# workaround: always "box" your values before saving into cache, e.g.
# Rails.cache.write('key', [1])

# where's UrlWriter?

>> ActionController.constants.sort.last
=> :UrlWriter

>> ActionController::UrlWriter
NameError: uninitialized constant ActionController::UrlWriter

>> ActionController.const_get(:UrlWriter)
NameError: uninitialized constant ActionController::UrlWriter

I didn't write down a lot of my complains about rails 3 before,
because I was a bit used to saying WTF rails during my works.
Now I just can't stand with it anymore, so I'll try to list down
all of them from now on.

0 retries:

Post a Comment

All texts are licensed under CC Attribution 3.0