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.

There was a problem

You must be a member of this account.

Sean's latest activity

Wednesday, September 08 2010
5583 problem with migrations/schema loading when using STI was created in Ruby on Rails
  • Sean
    Sean created the ticket at 4:50 PM

    I ran into a problem when deploying a Rails3 app on a new server. I have a couple of STI models, and when running db:migrate or schema:load, AR would attempt to...

Tuesday, August 10 2010
5352 self within AR scope evaluating to parent class instead of calling class was updated in Ruby on Rails
  • Sean
    Sean commented at 9:23 PM

    Sorry, I forgot to specify, this is on Rails3 (RC)

  • Sean
    Sean commented at 9:04 PM

    The reason this is a problem is that if you have scopes in a parent class that you're calling from a couple of different child classes, you may need to perform ...

  • Sean
    Sean created the ticket at 9:03 PM

    I don't know if this is a bug or intentional, but when calling a :scope in a parent class from it's child class (STI model), self within the scope evaluates to ...

Saturday, August 07 2010
5330 postgres adapter error when passing an array to IN statement was created in Ruby on Rails
  • Sean
    Sean created the ticket at 7:20 PM

    The following simple query:

     User.where('id IN ?',[1,2])
    

    generates the following incorrect SQL syntax, when using Postgres:

     SELECT     "users".* FROM       ...
5324 config.time_zone not setting default_timezone for AR, causing errors with Pos... was created in Ruby on Rails
  • Sean
    Sean created the ticket at 2:17 AM

    It appears that setting Rails::Application.config.time_zone (in application.rb) does not set ActiveRecord::Base.default_timezone.

    If I set the config.time_zone ...

Friday, August 06 2010
5316 :limit + :offset incompatibility between SQLite and Postgres was created in Ruby on Rails
  • Sean
    Sean created the ticket at 1:49 PM

    SQLlite requires that a SQL statement with an OFFSET command include a LIMIT statement. The way to use an offset to return all remaining records with no limit, ...

Tuesday, August 03 2010
5285 chaining two scopes with :includes, drops the second :includes was created in Ruby on Rails
  • Sean
    Sean created the ticket at 3:18 PM

    Maybe I'm doing something wrong, but it seems that when chaining scopes that each have an :includes on different tables, that only the first include is converte...

Thursday, July 15 2010
4911 [PATCH] Add :notice, :alert, and :flash as options to render. was updated in Ruby on Rails
  • Sean
    • Importance changed from to Low
    by Sean at 5:52 PM

    Any chance of reconsidering? This may a worthy addition. Flashing notices while rendering is I believe not uncommon (since it usually mean recycling the page du...

Wednesday, November 11 2009
1711 Has many through association with :order causes a SQL error with PostgreSQL was updated in Ruby on Rails
  • Sean
    Sean commented at 5:56 PM

    +1 experiencing the same problem. In my case, removing DISTINCT from the SQL statement (or :uniq from the AR command) solves the problem.