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

Wednesday, September 10 2008
215 ActiveRecord::Base.each instance method was updated in Ruby on Rails
Tuesday, September 09 2008
215 ActiveRecord::Base.each instance method was updated in Ruby on Rails
  • Guillermo Álvarez
    • Tag changed from enhancement to activerecord, enhancement
    by Guillermo Álvarez at 1:37 PM

    Hi.

    There is a patch to do for example Post.each.

    Please giveme comments since is my first patch to rails.

Thursday, August 14 2008
826 delete in a relation doesn't call sweeper was created in Ruby on Rails
  • Guillermo Álvarez
    Guillermo Álvarez created the ticket at 11:49 AM

    Summary

    • @users_friend.user.friends.delete(@users_friend.friend) # Dont call the sweeper observer
    • @users_friend.destroy # Call the sweeper
    • @users_friend.user.fr...
Wednesday, May 21 2008
228 Add add_counter_cache_column to ActiveRecord migrations was updated in Ruby on Rails
  • Guillermo Álvarez
    Guillermo Álvarez commented at 7:44 AM

    @Ryan_Bates with something like these

    change_table :users do |u|

    u.add_couter :posts

    end

    So you don't have to learn more methods name, because we will use ...

Tuesday, May 20 2008
228 Add add_counter_cache_column to ActiveRecord migrations was updated in Ruby on Rails
  • Guillermo Álvarez
    Guillermo Álvarez commented at 11:29 PM

    I think it could be cleaner something like these

    t.references :post, :couter=> true

    like we already do with for example null or polymorphic

Saturday, May 17 2008
215 ActiveRecord::Base.each instance method was updated in Ruby on Rails
  • Guillermo Álvarez
    Guillermo Álvarez commented at 8:24 PM

    My situation is these:

    desc 'Copy Posts from the phpbB3 table to the new forum'

    task :copy_posts => :environment do

    BbTopic.find(:all).each do |bb|

    f = Pos...

  • Guillermo Álvarez
    Guillermo Álvarez commented at 8:15 PM

    ActiveRecord::Base.each

    ActiveRecord::Base.map

    ActiveRecord::Base.collect

    With migrations between two or more databases, is common to do something like

    Use...

  • Guillermo Álvarez
    Guillermo Álvarez created the ticket at 6:15 PM

    [PATCH] These patch add: ActiveRecord::Base.each ( User.each {|u| u.name} ) ActiveRecord::Base.map ActiveRecord::Base.collect

    But with the diference with User.a...