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.

James B. Byrne's latest activity

Thursday, April 30 2009
2314 v 2.3.2 - appropriates attributes ending in _type and _value was updated in Ruby on Rails
  • James B. Byrne
    James B. Byrne commented at 8:22 PM

    Sorry for the late replay, I did not get an email notice when the ticket was updated, or missed it if I did.

    The error was mine. I had the attr_protected set fo...

Thursday, April 02 2009
2402 AR::Migrations not quoting index names? was created in Ruby on Rails
  • James B. Byrne
    James B. Byrne created the ticket at 11:15 PM

    Rails 2.3.2 gem

    PostgreSQL 8.3.7

    Situation:

    Given a migration containing an index name with mixed case f.e. (idxU_name)

    And given the DB adapter is postgresql

    W...

Monday, March 23 2009
2314 v 2.3.2 - appropriates attributes ending in _type and _value was updated in Ruby on Rails
  • James B. Byrne
    • Tag changed from 2.3.2, activerecord, attributes, defect to invalid
    by James B. Byrne at 8:20 PM

    Please close. Invalid.

  • James B. Byrne
    James B. Byrne commented at 7:44 PM

    This appears to be dependent upon whether or not the model name forms part of the attribute name. So:

    mi = Identity.new
    => ...
    mi.x_type = "A Type"
    => "A Type"...
  • James B. Byrne
    James B. Byrne commented at 5:36 PM
    mi = me.identifiers.build 
    => 
    mi.code_type = "Xray" 
    => "Xray" 
    mi.code_type 
    => nil 
    mn = Identifier.new 
    => mn.entity_id = 1 
    => 1 
    mn.code_type = "Whisky" ...
  • James B. Byrne
    • Title changed from v 2.3.2 - appropriates attributed ending in _type and _value to v 2.3.2 - appropriates attributes ending in _type and _value
    by James B. Byrne at 5:32 PM
  • James B. Byrne
    James B. Byrne commented at 5:31 PM

    Lost example added:

    Using write_attribute skips attribute= processing in model.

    
    >> mn.write_attribute(code_type, "MixCase")
    NameError: undefined local varia...
1 earlier change…
  • James B. Byrne
    James B. Byrne created the ticket at 5:27 PM

    If a table has attributes ending in type or value then these attributes cannot be set.

    Example:

    
    class CreateIdentifiers < ActiveRecord::Migration
      def self...
2317 rake db:migrate VERSION=0 applies migration was created in Ruby on Rails
  • James B. Byrne
    James B. Byrne created the ticket at 7:52 PM

    If one does this:

    $ rake db:migrate VERSION=0
    ...
    

    followed by

    $ rake db:migrate VERSION=0
    
    Then all the pending migrations are applied, notwithstanding the V...
Tuesday, March 17 2009
2277 Rails 2.3.2 css#id namespace collision was created in Ruby on Rails
  • James B. Byrne
    James B. Byrne created the ticket at 7:58 PM

    If a template, or nested templates, has both a call to content_tag_for Xobject and a call to form_for Xobject then these will both set the default css#id to xob...