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.

Pat George's latest activity

Wednesday, February 09 2011
6147 find_or_create via has_many fails for hash parameters was updated in Ruby on Rails
  • Pat George
    Pat George commented at 5:59 PM

    Sorry for the bad code block.

    >> account = Account.first; params = { :url => "google2311.com", :token => "foo2311", :user_id => account.users.first.id }
    >> acc...
  • Pat George
    Pat George commented at 5:57 PM
    1. I just updated an old Rails 2.3.4 project to 2.3.11 (for the security update) only to discover all our "object.association.find_or_create_by_attr1_and_attr2(ha...
Saturday, June 07 2008
333 Autocorrect plural ModelName passed to script/generate scaffold was updated in Ruby on Rails
  • Pat George
    Pat George commented at 1:02 AM

    Assuming we come to an agreed upon solution and I get the 3 +1s necessary, I'll be looking into Ryan's suggestion next (to put the auto correction code into ot...

Friday, June 06 2008
333 Autocorrect plural ModelName passed to script/generate scaffold was updated in Ruby on Rails
  • Pat George
    Pat George commented at 4:26 PM

    I think prompting the user involves more effort than it's worth on the code front.

    I do see your point but I think Jeremy's accidental example made it clear t...

  • Pat George
    Pat George commented at 2:46 PM

    Pratik,

    The only other place I found in which a prompt is used in generation - Rails::Generator::Commands::Create.file - can be overridden by the --force and ...