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.

Philip Hallstrom's latest activity

Thursday, October 23 2008
1100 JSON decoding of \u escape sequences was updated in Ruby on Rails
  • Philip Hallstrom
    • Tag set to 2.1, activesupport, bug, patch, tested, tiny
    by Philip Hallstrom at 6:32 PM

    I'll admit I am not an expert about JSON. I applied your patch and the tests passed. However, I'm testing out Google's AJAX search API that returns JSON and it ...

Monday, October 20 2008
1115 Path to extend named routes support for an object's to_params() method was updated in Ruby on Rails
  • Philip Hallstrom
    Philip Hallstrom commented at 5:21 AM

    "Just an idea: since you've defined your route as /schools/:state/:city/:id/:name, wouldn't it make sense for school_path(obj) to simply inject the return value...

Wednesday, October 08 2008
1115 Path to extend named routes support for an object's to_params() method was updated in Ruby on Rails
  • Philip Hallstrom
    Philip Hallstrom commented at 8:17 PM

    One thing to keep in mind that I've just come across is that a model that has to_params() defined will cause some havoc with mapped resources and form_for. I'm ...

Monday, September 29 2008
1115 Path to extend named routes support for an object's to_params() method was updated in Ruby on Rails
  • Philip Hallstrom
    Philip Hallstrom commented at 5:28 PM

    I haven't. Thought about it, but it modifies two methods deep in Rails routing and it seemed any attempt at a plugin would be pretty fragile...

    I'm actively usi...

Friday, September 26 2008
1115 Path to extend named routes support for an object's to_params() method was updated in Ruby on Rails
  • Philip Hallstrom
    Philip Hallstrom commented at 11:48 PM

    Figured out the problem. There is a route optimization method that runs prior to the rest of the routing code. The conditions were such that if there was a sing...

  • Philip Hallstrom
    Philip Hallstrom commented at 10:57 PM

    As it currently exists this patch doesn't work for all cases. I'm looking into it now. Seems routes get generated a couple of different ways not always through ...

  • Philip Hallstrom
    Philip Hallstrom created the ticket at 1:11 AM

    The title not make sense so here's a brief description.

    I have a route as follows:

    
    map.school '/schools/:state/:city/:id/:name'
    

    This is done for SEO purpose...

Wednesday, September 24 2008
1099 Patch to support PostgreSQL functional indexes. was updated in Ruby on Rails
  • Philip Hallstrom
    Philip Hallstrom commented at 4:06 PM

    I will admit to not being a postgresql expert and understanding all the changes in that query. I asked on the PG mailing list for what I wanted (the SQL to retu...

Tuesday, September 23 2008
1099 Patch to support PostgreSQL functional indexes. was created in Ruby on Rails
Tuesday, September 16 2008
1061 Patch to allow 'rake db:migrate:redo' to accept VERSION to target that migration was created in Ruby on Rails
  • Philip Hallstrom
    Philip Hallstrom created the ticket at 6:43 PM

    I find I occasionally type:

    
    rake db:migrate:redo VERSION=20080903190605
    

    and expect it to redo that specific migration, but redo only redoes the most recent ...