Derek McLoughlin
Not a member
Derek McLoughlin's latest activity
Monday, June 22 2009
2436
url_for documentation - only_path
was updated
in Ruby on Rails
-
Derek McLoughlin commented at 5:01 PMurl_for behaves differently depending on whether it is called from within a view or within a controller.
From within a view, the default is a relative URL, and ...
Friday, March 13 2009
1830
Rails.cache.fetch does not work with false boolean as cached value
was updated
in Ruby on Rails
-
Derek McLoughlin commented at 4:17 PMTrue, but nil is currently being used as meaning "the thing isn't in the cache". The above solution works for cached values of 'false'.
Thursday, March 12 2009
1830
Rails.cache.fetch does not work with false boolean as cached value
was updated
in Ruby on Rails
-
Derek McLoughlin commented at 3:01 PMWould it be better to have the following:
if !options[:force] && ((value = read(key, options)) != nil)