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.

This project is archived and is in readonly mode.

Activity (RSS)

Sunday, May 22 2011
6795 config.cache_classes is broken for HABTM relationships and Postgres was created
  • quarterdome
    quarterdome created the ticket at 10:15 PM

    Lets say we have a many to many relationship like this:

    class Unit

    has_and_belongs_to_many :photos
    

    end

    class Photo

    has_and_belongs_to_many :units
    

    end

    There ...

6794 Block in a loop: huge memory claim that can kill your server (3.0.7) was created
  • Roland Pallai
    Roland Pallai created the ticket at 8:16 PM

    Rails 3.0.7 allocates a lot of memory if you do benchmark{}/silence{} in a loop:

    <%= 20.times do %>
      <%= benchmark("test"){ %>
        hello world
      <% } %>
    <% en...
1202 Add magic encoding comment to generated files was updated
  • fakeraybans
    fakeraybans commented at 12:26 PM

    i love fake ray bans

6793 Automatically generated revert isn't correct for index was created
  • David Workman
    David Workman created the ticket at 11:18 AM

    On the latest 3.1.0.rc1 branch, I used the line in a migration:

      def change
        add_index :some_table, [:column1, :column2], :unique => true, :name => "some_t...
1304 [PATCH] Readable schema.rb timestamp was updated
  • wengwo
    wengwo commented at 7:40 AM

    ff

Saturday, May 21 2011
6306 Collection Associations Build Method Not Supported for STI was updated
  • Coutud
    Coutud commented at 10:26 PM

    Encoutered the same issue here, and the given patch seems to be working. I'd remove the && type.class == Class, and would use ActiveRecord::Base.compute_type(op...

Friday, May 20 2011
5392 column_definitions method being called before and after every single SQL stat... was updated
  • quarterdome
    quarterdome commented at 6:45 PM

    I am seeing this problem in Rails 3.0.6 in production mode with cache_classes=true.

    It works fine for the normal rails calls, however I see these table introspe...

6751 Rails assumes too much about the name of the "production" environment was updated
  • Brian Ploetz
    Brian Ploetz commented at 4:43 PM

    Yes, of course we can just monkey patch ActiveSupport::StringInquirer.production? like that. That just seems a little brittle to me. My larger point was that as...

  • Steven Soroka
    • Tag changed from environments, production to environments, invalid, production
    by Steven Soroka at 3:50 AM

    For such a special case, just override what production means like Pavel suggested.

    -1

1717 ActiveResource::CustomMethods#put should behave like #post for body encoding was updated
  • JacelynCecot
    JacelynCecot commented at 6:03 AM

    Thanks for a marvelous posting! I quite enjoyed reading it, you can be a great author.I will ensure that I bookmark your blog and may come back from now on. I w...

6339 sexier migration that doesn't need the block parameter for create_table was updated
  • Matt Kern
    Matt Kern commented at 4:44 AM

    +1

    I'm for the simplification for sure. And, though I completely agree that instance_eval can be problematic, in this case it seems totally worthwhile.

6789 Arel sum not honoring limit was updated
  • Steven Soroka
    • Tag changed from arel rails3 sum limit sql to arel rails3 sum limit sql, invalid
    by Steven Soroka at 3:44 AM

    Since Arel's job is essentially to generate the sql you need, and the sql you are trying to generate is not valid, it doesn't make sense to expect arel to magic...

6792 Flash Notice on all Show views was created
  • sgallo1 (at gmail)
    sgallo1 (at gmail) created the ticket at 2:44 AM

    Flash notice html is generated on all show views. This does not seem dry. Flash is typically kept in a layout. Don't recall this in previous versions. Running 3...

5541 Autotest fail with Rails 3.0.0 and ruby 1.9.2p0 (2010-08-18 revision 29036) [... was updated
  • learn italian online
    learn italian online commented at 1:27 AM

    .each { |f| require f }" | unit_diff -u rosetta /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/ZenTest-4.4.0/lib/unit_diff.rb:100: warning: shadowing outer learn fren...

2409 activerecord double escapes error_messages_for was updated
244 Improvements to simplified_type for Oracle adapter was updated
4772 Errors in ActiveSupport testsuite on 1.9.2-head was updated
5419 after_validation callbacks are no longer executed if validation fails in rails3 was updated
  • learn italian online
    learn italian online commented at 1:21 AM

    If you saw Sunday's Free Rosetta Stone Language Press that shown Robert Bobb the emergency financial manager for Detroit Public rosetta stone Schools, move Mark...

  • learn italian online
    • State changed from committed to open
    by learn italian online at 1:20 AM

    The resources of the Rails core team are Ray Ban 2140 limited, and so we are asking for your help. If you can still
    learn italian online reproduce this error on...

6234 Request for automatic invocation of 'reset_column_information' in Migrations was updated
4398 [PATCH] ActionDispatch::DeprecatedMapper needs with_options was updated
Thursday, May 19 2011
6791 url_for() raising exceptions when HTTP streaming enabled was created
  • Andriy Tyurnikov
    Andriy Tyurnikov created the ticket at 2:22 PM

    ...and this is not the only case when url_for() raising exception

    render :stream => true or class method
    stream effect is same

    unicorn config line

    listen :tcp_n...

6790 <action>.js.coffee not being found automatically in views was created
  • scott (at keepflippin)
    scott (at keepflippin) created the ticket at 1:01 PM

    The controller:

    class HoursController < ApplicationController
      
      respond_to :html
      respond_to :js, :only => [:id]
      
      def index
      end
      
      def id
      end
    end...
6689 Docs for ActiveRecord::Locking::Pessimistic don't make sense was updated
  • John Paul Ashenfelter
    John Paul Ashenfelter commented at 6:21 AM

    This is addressed in GH #1032 and fixed in #3b18e900e8fc3c333dc52e71c7cb8413250ac192 in docrails

1339 AR::Base should not be nuking its children, just because it lost interest was updated
4690 Mongrel doesn't work with rails 2.3.8 was updated
6789 Arel sum not honoring limit was created
  • Jim Haungs
    Jim Haungs created the ticket at 2:01 AM

    Given a table of items with a cost column, the following code sums ALL of the items for the cart, not just 2. For this simplified example, assume I want to disc...

Wednesday, May 18 2011
6788 Sass::SyntaxError when using CSS "alpha-opacity" property was updated
  • edimach (at gmail)
    edimach (at gmail) commented at 11:08 PM

    This error only occurs in "production" mode.

  • edimach (at gmail)
    edimach (at gmail) created the ticket at 11:03 PM

    Sass::SyntaxError in Main/cockpit#index

    Showing /Users/edison/Sites/beta.foco/app/views/layouts/application.html.haml where line #8 raised:

    Invalid CSS after "....

6751 Rails assumes too much about the name of the "production" environment was updated
  • Pavel Lazureykis
    Pavel Lazureykis commented at 9:16 PM

    Can you override this method?

    config/initializers/00_production_environments.rb

    module ActiveSupport
    class StringInquirer < String

    def production?
      %w(product...
2976 has_one :through preload drops conditions was updated
385 Small confusion around config.action_view.cache_template_loading was updated
  • KMike
    KMike commented at 5:46 PM

    Dear Ruy,

    We get the same error in our workspace database and for whatever reason on PC geek cannot fix it. How do I contact your (PM?) to get help? Please, let...

2747 Aggregation writer doesn't behave nicely when converter returns nil was updated
  • jfelchner
    jfelchner commented at 3:10 PM

    I'm on it. Forgot you guys switched over. I also took a look and the patch is no longer valid. I'll submit a new pull request with a link back to this page.

    Tha...

4554 render :text => proc { ... } regression was updated
  • Rodrigo Rosenfeld Rosas
    Rodrigo Rosenfeld Rosas commented at 12:19 PM

    Maybe we should close this now that 3.1 will support streaming again... What do you think?

6787 counter_cache isn't decremented when it should was created
  • Filipe Giusti
    Filipe Giusti created the ticket at 2:19 AM

    counter_cache isn't decremented when a model with a self referential association is destroyed.

    I've attached a test case that should speak for itself. It fails ...

2058 Rake tasks for run engine migrations was updated
  • rockey
    rockey commented at 1:21 AM

    This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to re...

Tuesday, May 17 2011
6786 Association Extension - Association proxy missing was created
  • Andriy Tyurnikov
    Andriy Tyurnikov created the ticket at 4:35 PM

    Method

      def proxy_owner
        @owner
      end
    

    is simply not there anymore.

    How we should extend associations now?

288 [patch] - SQL Injection for :limit and :offset was updated
2747 Aggregation writer doesn't behave nicely when converter returns nil was updated
  • Chris Hapgood
    Chris Hapgood commented at 2:02 PM

    jfelchner,
    At a minimum, this ticket is going to need to be moved to the new system on GitHub. Care to take a stab?

  • jfelchner
    jfelchner commented at 2:28 AM

    This is most definitely something that I would like to see fixed in 3.1. I am currently having the same problem where the converter should (correctly) return ni...

2058 Rake tasks for run engine migrations was updated
  • saminaloree
    saminaloree commented at 10:11 AM

    I am really enjoying reading
    I am really enjoying reading your well written articles. I think you spend numerous effort and time updating your blog. I have book...

  • jameswatsonal
    jameswatsonal commented at 6:04 AM

    I am once again feeling happy and proud to say that this is my favorite web site.The postings are very unique and also out standing performance with the new cre...

Monday, May 16 2011
6722 Add autocomplete="off" Attribute to the authenticity_token of form_tag was updated
  • Greg Molnar
    Greg Molnar commented at 9:37 PM

    The site you linked to is just a submission of planning changes in the w3c spec. unfortunately it won't be valid soon. as far as I know rails has a principle as...

6464 Diffrent behaviour for find_or_create_by and find_by was updated
  • Jeremy Friesen
    Jeremy Friesen commented at 8:22 PM

    Included a patch that address the particular problem identified above.

2058 Rake tasks for run engine migrations was updated
  • strobin
    strobin commented at 6:33 PM

    plugin migrations even close in magnitude to the poor man's copying approach? Also the copying approach appears to only work for plugins/engines that are under ...

6785 3.1: params_wrapper raises error on anynomous controllers was updated
6784 ActiveRecord::Base#method_missing has inconsistent handling of blocks was updated