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.

Nobuhiro IMAI's latest activity

Friday, July 24 2009
2937 id for radio_button behavior was updated in Ruby on Rails
  • Nobuhiro IMAI
    • Tag changed from 2.3.3, action_view, form_helper to 2.3.3, action_view, form_helper, patch
    by Nobuhiro IMAI at 8:44 AM

    Hello,

    this patch works fine for me, thanks!

Thursday, July 23 2009
2942 Enumerable::Enumerator#next causes 'stack level too deep' since ActiveSupport... was updated in Ruby on Rails
  • Nobuhiro IMAI
    Nobuhiro IMAI commented at 2:33 PM

    Hello,

    I found a kind of reason for this behavior.

    $ irb -f --simple-prompt
    >> require "rubygems"
    => true
    >> require "active_support"
    => true
    >> $:.reject{|pat...
Wednesday, July 22 2009
2937 id for radio_button behavior was created in Ruby on Rails
  • Nobuhiro IMAI
    Nobuhiro IMAI created the ticket at 5:39 AM

    Hello,

    is the following behevior intentional?

    Loading development environment (Rails 2.3.2)
    >> irb helper
    >> @foo = "foo"
    >> puts(radio_button("foo", "hash", t...
Saturday, May 30 2009
1708 Fixtures starting with "test_" run redundant unit tests was updated in Ruby on Rails
  • Nobuhiro IMAI
    • Title changed from Fixtures starting with "test_" will break unit tests to Fixtures starting with "test_" run redundant unit tests
    • Tag changed from 2.2.2, actioncontroller, exceptions, fixtures, test, testing, tests, unit to 2.3.2, activerecord, fixtures, patch, test, testing, tests, unit
    by Nobuhiro IMAI at 7:31 AM

    Patch attached. Does it make sense?

Wednesday, May 27 2009
1708 Fixtures starting with "test_" will break unit tests was updated in Ruby on Rails
  • Nobuhiro IMAI
    Nobuhiro IMAI commented at 7:13 AM

    Hmm, test works, but redundant test cases appear out of nowhere.
    I hit this with TestResult, and found this ticket.

    $ rake test:units
    (in /tmp/foo)
    /usr/bin/ru...
Sunday, May 24 2009
2701 boot.rb accidental assignment? was updated in Ruby on Rails
  • Nobuhiro IMAI
    Nobuhiro IMAI commented at 12:27 AM

    This is intentional, I guess.

    Variable assignment is evaluated as expression, and have its
    assigned value all the time. It seems there is no method named
    versio...

Thursday, April 23 2009
2189 count breaks has_many through association collection with named scope was updated in Ruby on Rails
  • Nobuhiro IMAI
    Nobuhiro IMAI commented at 2:59 AM

    Mike Gunderloy suggested me that #2482 is similar problem like this. Would anyone be kind to care about that ticket, too?

Tuesday, April 21 2009
2482 count with scoped :from option was updated in Ruby on Rails
  • Nobuhiro IMAI
    Nobuhiro IMAI commented at 9:05 AM

    I tryed the following:

    
    class Foo < ActiveRecord::Base
      named_scope :top10, :from => "(SELECT * FROM foos ORDER BY foos.rank DESC LIMIT 10) AS foos" do
       ...
Saturday, April 11 2009
2482 count with scoped :from option was created in Ruby on Rails
  • Nobuhiro IMAI
    Nobuhiro IMAI created the ticket at 7:04 AM

    ActiveRecord::Base.count does not care for scoped :from option. This is inconvenient when named_scope with :from option as some kind of sub-query like:

    named_sc...

Sunday, September 14 2008
963 assert_select checking for negatives was updated in Ruby on Rails
  • Nobuhiro IMAI
    Nobuhiro IMAI commented at 9:05 AM

    How about the following workaround?

    
    assert_raise(Test::Unit::AssertionFailedError) do
      assert_select "[checked=checked]"
    end
    

    Firebug seems to recognize [ch...