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.

Gravis's latest activity

Wednesday, May 13 2009
2641 Display RAILS_ENV in script/console was created in Ruby on Rails
  • Gravis
    Gravis created the ticket at 2:10 PM

    to avoid stupid errors (yes, we all need some sleep sometimes), I think we should display the current env in the rails console.

    I've set this in my .irbrc file ...

Sunday, April 26 2009
2282 has_many association_condition option was updated in Ruby on Rails
  • Gravis
    Gravis commented at 11:45 PM

    I would +1 for a :joins options, allowing to specify the joining conditions on a has_many assoc (or habtm).

    I have a +/- complex request forcing me to use a fin...

Friday, April 10 2009
1977 ActionController::Caching::Sweeper autoloading is broken was updated in Ruby on Rails
  • Gravis
    Gravis commented at 2:32 PM

    @stanislav : thx, what do you mean by adding these line ?

    just

    ActiveRecord::Base
    
    

    ? I get a NameError: uninitialized constant ActiveRecord error when doing t...

  • Gravis
    Gravis commented at 2:26 PM

    Update : I've corrected the issue by using :

    
    Rails.configuration.action_controller.session[:domain] = '.staging.mydomain.net'
    

    in my config/environments/sta...

  • Gravis
    Gravis commented at 2:20 PM

    I'm sorry, but I'm still having the issue, and don't understand how to solve it. I'm migrating a rails 2.2.3 app to 2.3.2, and since my subdomain cookie don't w...

Friday, February 13 2009
1961 Allow sweepers to run expire_fragment without declaring cache_sweeper was created in Ruby on Rails
  • Gravis
    Gravis created the ticket at 2:59 PM

    Hi,

    I've tried to find a ticket related to this issue, and didn't find any, sorry if it has been discussed here before. Ok, here's my problem :

    I have an activi...

Wednesday, December 24 2008
1610 text_field eating leading zero strings was updated in Ruby on Rails
  • Gravis
    Gravis commented at 10:18 AM

    Thanks Yehuda !

    I think just a little paragraph in the guides explain that fields with possible leading zeros like postal codes, phone numbers, etc should be st...

Sunday, December 21 2008
1610 text_field eating leading zero strings was updated in Ruby on Rails
  • Gravis
    Gravis commented at 11:37 PM

    can't reproduce problem on a fresh 2.2.2 app.

    Okkkk, really sorry, my fault, the field was indeed an integer, and not a string (we have 2 postal codes there).

    W...

  • Gravis
    Gravis commented at 8:45 PM

    Hi,

    I'm using rails 2.2.2, and the site has been migrated several time from 1.X.

    The column type is a string, in schema.rb :

    t.string   "postal_code"
    
    

    and the...

Saturday, December 20 2008
1610 text_field eating leading zero strings was created in Ruby on Rails
  • Gravis
    Gravis created the ticket at 10:28 PM

    Hi,

    I have an issue where users must be able to set their postal code. We've set postal code to be a 5 length string. If we're using :

    <%= form.text_field :post...