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.

Andrea Campi's latest activity

Sunday, October 10 2010
5575 Small typo "configation" was updated in Ruby on Rails
5778 edge rails sends include to uninitialized constant Rack::Session::Abstract::S... was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 11:35 PM

    AFAIK you need to use edge rack:

    gem 'rack', :git => 'git://github.com/rack/rack.git'
    
5332 DEFAULT_*_OPTIONS cause inconsistencies in FormHelper was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 11:21 PM

    I like your idea so I will gladly upvote it, but the patch doesn't apply anymore. Can you reroll it?

5772 Calling a model "Update" leads to unexpected behavior was updated in Ruby on Rails
  • Andrea Campi
    • Tag set to activerecord, patch
    by Andrea Campi at 11:11 PM

    It's not very surprising that your use case doesn't work: #update is a reserved word in ActiveRecord (it's not in the public API, but still documented).
    In fact...

5330 postgres adapter error when passing an array to IN statement was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 10:04 PM

    -1

    It would seem to me that if you are passing a String with an explicit IN, you know what you are doing with the DB and you should know you need the (). The do...

Saturday, October 09 2010
5775 HashWithIndifferentAccess should override #store was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 11:11 PM

    Thought so :) There you go.

  • Andrea Campi
    Andrea Campi commented at 7:40 PM

    No worries :)

  • Andrea Campi
    • Tag changed from activesupport, hashwithindifferentaccess, params to activesupport, hashwithindifferentaccess, patch
    by Andrea Campi at 7:39 PM
5774 Protocol-relative URLs was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 9:15 PM

    The patch looks good to me functionality-wise, but I have to say I'm not a big fan of:

    unless options[:protocol] == false
    

    If I were to keep changes minimal, I...

5754 Fail to generate rdoc for ActionView::Helpers::TextHelper was updated in Ruby on Rails
  • Andrea Campi
    Andrea Campi commented at 6:39 PM

    +1 indeed, NaN% can't be right