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.

Rafael Mendonça França's latest activity

Thursday, December 09 2010
6002 [PATCH] Ignore domain :all option if host is IP address or localhost was updated in Ruby on Rails
  • Rafael Mendonça França
    Rafael Mendonça França commented at 6:19 PM

    Ok. Thanks @Ravil.

  • Rafael Mendonça França
    Rafael Mendonça França commented at 6:13 PM

    Sure. This works fine, but I have to set the cookie store for each environment in my application, making the session_store initialer useless.

    It would be intere...

  • Rafael Mendonça França
    Rafael Mendonça França commented at 5:59 PM

    It's look nice. But my problem is when I have domains like this www.app.me, mysubdomain.app.me. They should share the same cookies with domain .app.me. But they...

Tuesday, December 07 2010
6002 [PATCH] Ignore domain :all option if host is IP address or localhost was updated in Ruby on Rails
  • Rafael Mendonça França
    Rafael Mendonça França commented at 12:20 PM

    @Ravil, thank you. I would really appreciate if you submit another patch for this.

Monday, December 06 2010
6002 [PATCH] Ignore domain :all option if host is IP address or localhost was updated in Ruby on Rails
  • Rafael Mendonça França
    Rafael Mendonça França commented at 4:53 PM

    Domains like lvh.me don't works too. It generate a cookie for lvh.me, and for each subdomains. This is doing my flash messages don't works as it should.

    I creat...

6120 Flash message don't clear was updated in Ruby on Rails
  • Rafael Mendonça França
    Rafael Mendonça França commented at 3:46 PM

    I clear all the cookies, but get the same flash message.

    But, I change the :domain option for the my domain name instead of :all and the flash message works fin...

  • Rafael Mendonça França
    Rafael Mendonça França commented at 3:26 PM

    Sorry. I think that this behavior occurs because I set the session_store like this:

    App::Application.config.session_store :cookie_store, :key => '_app_session'...
  • Rafael Mendonça França
    Rafael Mendonça França created the ticket at 2:57 PM

    In all request the flash is a same.

Friday, October 15 2010
5800 after_create callback is not called in an association was updated in Ruby on Rails
  • Rafael Mendonça França
    Rafael Mendonça França commented at 11:31 PM

    I tried it again in a new Rails 3 application and I have the same behavior.

    class Order < ActiveRecord::Base
      has_many :items, :class_name => 'OrderItem'
    end
    
    ...
Wednesday, October 13 2010
5800 after_create callback is not called in an association was created in Ruby on Rails
  • Rafael Mendonça França
    Rafael Mendonça França created the ticket at 3:05 PM

    I have the following scenario:

    class A < AR::Base
      has_many :items, class_name => 'B'
    end
    
    class B < AR::Base
      belongs_to :a
    
      after_create :update_x
    
      pri...