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.

JackC's latest activity

Tuesday, November 30 2010
6094 has_many :through across namespace fails was updated in Ruby on Rails
  • JackC
    • Tag changed from activerecord, has_many_through, module, namespace to activerecord, documentation, has_many_through, module, namespace
    by JackC at 10:17 PM

    On further investigation, setting :class_name on the has_many :through relationship actually works.

    The problem is actually in the documentation. The docs say t...

  • JackC
    JackC created the ticket at 10:03 PM
    class Person < ActiveRecord::Base
      has_many :manager_roles, :class_name => "Organization::Department"
      has_many :departments, :through => :manager_roles
    end
    ...
6091 Hash conditions fail with PostgreSQL ENUMs was created in Ruby on Rails
  • JackC
    JackC created the ticket at 5:22 PM

    Cannot query a table by an enumerated field.

    For example, when gender is a PostgreSQL enum:

    irb(main):004:0> Person.where(:gender => "male").first
    NoMethodErro...
Friday, November 19 2010
5324 config.time_zone not setting default_timezone for AR, causing errors with Pos... was updated in Ruby on Rails
  • JackC
    JackC commented at 9:41 PM

    I have the same issue as MikZ. Wrong time zone setting is breaking a view that does time calculations.

    A workaround appears to be adding the following line to a...

Thursday, October 21 2010
5851 has_and_belong_to_many destroy with foreign key constraints broken was updated in Ruby on Rails
  • JackC
    • Tag changed from foreign key constraint destroy 3.0, has_and_belongs_to_many to foreign key, rails 3.0.0, constraint, destroy, has_and_belongs_to_many
    by JackC at 2:01 PM
  • JackC
    JackC created the ticket at 2:00 PM

    Destroying a record with a has_and_belongs_to_many association fails if the join table has foreign key constraints. On Rails 2.3.X the association is cleared pr...

Saturday, October 09 2010
5776 rake db:structure:dump fails with PostgreSQL 9.0 and ident authentication was updated in Ruby on Rails
  • JackC
    • Tag changed from pg_dump postgresql 9.0 ident, 2.3.x to pg_dump postgresql 9.0 ident, 2.3.x, minor
    by JackC at 10:43 PM

    A simple workaround is to explicitly include username in database.yml.

  • JackC
    JackC created the ticket at 10:20 PM

    rake db:structure:dump fails with PostgreSQL 9.0 and ident authentication.

    pg_dump: [archiver (db)] connection to database "myproject_development" failed: FATAL...

Monday, June 07 2010
4788 rails_xss breaks when the word raw is used in text was created in Ruby on Rails
  • JackC
    JackC created the ticket at 6:47 PM

    When using Rails 2.3.8 and rails_xss plugin create a view with the following line in it.

    <%= 'text with the word raw in it fails' %>

    It will crash.
    I think the ...

Thursday, November 19 2009
3496 ActiveResource should use Rails time zone support instead of forcing UTC was created in Ruby on Rails
  • JackC
    JackC created the ticket at 4:11 PM

    ActiveRecord can automatically convert times from UTC in the database to the local time zone. ActiveResource automatically converts times it receives over the w...