Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Derek McLoughlin's latest activity

Monday, June 22 2009
2436 url_for documentation - only_path was updated in Ruby on Rails
  • Derek McLoughlin
    Derek McLoughlin commented at 5:01 PM

    url_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
    Derek McLoughlin commented at 4:17 PM

    True, 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
    Derek McLoughlin commented at 3:01 PM

    Would it be better to have the following:

        if !options[:force] && ((value = read(key, options)) != nil)