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.

Mark Dodwell's latest activity

Monday, September 13 2010
5622 boolean_attr_accessor was created in Ruby on Rails
  • Mark Dodwell
    Mark Dodwell created the ticket at 7:31 AM

    I'd like to propose adding a boolean_attr_accessor core extension to Module:

      class Foo
        boolean_attr_accessor :bar
      end
    
      foo = Foo.new
      foo.bar = "1"
    ...
Sunday, January 31 2010
2432 build_association nullifies existing model object in has_one association was updated in Ruby on Rails
  • Mark Dodwell
    Mark Dodwell commented at 7:15 PM

    I'm also seeing this behaviour. Seems very undesirable, surprised nobody else has commented yet.

    Are other people seeing this?

Sunday, December 06 2009
3165 ActiveRecord::MissingAttributeError after update to rails v 2.3.4 was updated in Ruby on Rails
  • Mark Dodwell
    Mark Dodwell commented at 1:16 AM

    I ran into this same bug, and side-stepped it by changing the way I was setting my attribute in #after_initialize:

    def after_initialize
      self.token ||= "fooba...
Wednesday, February 18 2009
2011 assert_template :symbol passes whatever was created in Ruby on Rails
  • Mark Dodwell
    Mark Dodwell created the ticket at 9:36 PM

    When you use a symbol for assert_template, it passes regardless of what symbol you pass.

    For example, if the actual template rendered is 'foo/new.html.erb', the...