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.

Guillermo Álvarez's latest activity

Thursday, February 03 2011
1736 Now explicit serializated objects retuns new objects when nil was updated in Ruby on Rails
  • Guillermo Álvarez
    • State changed from stale to open
    by Guillermo Álvarez at 12:25 AM

    [state:open]

    Update patch for rails 3.x

    • Added some tests
    • Added documentation
Thursday, June 10 2010
4818 Share session between subdomains was updated in Ruby on Rails
  • Guillermo Álvarez
    • Tag changed from cookie_store, session_store.rb to 3.x, cookie_store, session_store.rb
    by Guillermo Álvarez at 3:23 PM
  • Guillermo Álvarez
    Guillermo Álvarez commented at 11:25 AM

    This patch is so simple, and just cover most of the cases i know, so for most complicated cases like 3th level domain, you must be explicit. For example:

    If you...

  • Guillermo Álvarez
    Guillermo Álvarez commented at 11:03 AM

    Here is the patch.

  • Guillermo Álvarez
    Guillermo Álvarez created the ticket at 10:58 AM

    Sessions cookies don't hace domain, so by default navigators use current HTTP_HOSTS.

    If you want to share session between www.example.com and username.example.c...

Monday, April 06 2009
2189 count breaks has_many through association collection with named scope was updated in Ruby on Rails
  • Guillermo Álvarez
    Guillermo Álvarez commented at 3:29 PM

    @John Topley

    There is another thing you can do. Is so simple, but it isn't the best solution.

    Instead of use .empty? Just put .all.empty?

    These isn't clean, doe...

Thursday, April 02 2009
2189 count breaks has_many through association collection with named scope was updated in Ruby on Rails
  • Guillermo Álvarez
    Guillermo Álvarez commented at 5:58 PM

    The best thing you can do with these problem is just add (:all) to count. So instend of apply a patch, just be explicit:

    
      Tag.first.tagged_posts.containing_...
  • Guillermo Álvarez
    Guillermo Álvarez commented at 4:30 PM

    I think there is a problem in rails.

    Proxies and name_scopes must be merge in orde to not have these kind of problems.

    Here is two tests.

    The first, count over ...

Monday, February 16 2009
1954 Dirty Objects: attribute_reset was updated in Ruby on Rails
  • Guillermo Álvarez
    Guillermo Álvarez commented at 11:00 AM

    Thanks for the comment.

    I run test with

    rake test TEST=find . -name dirty_test.rb

    and

    rake test

    That seems not to fail for me, so i didn't care.

    But you are rig...