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.

Jan Xie's latest activity

Monday, June 28 2010
4992 new table name set by set_table_name not used by model was created in Ruby on Rails
  • Jan Xie
    Jan Xie created the ticket at 9:11 AM

    test case example:

    class PostDraft < Post
      set_table_name 'post_drafts'
    end
    
    assert_difference("PostDraft.count") do
      Post.set_table_name 'posts'
      Post.crea...
Wednesday, June 23 2010
2346 named_scope doesn't override default_scope's :order key was updated in Ruby on Rails
  • Jan Xie
    • Tag changed from 2.3, 2.3.5, activerecord, bug, default_scope, named_scope, patch, verified to rails 3.0.0.beta4, 2.3, 2.3.5, activerecord, bug, default_scope, named_scope, patch, verified
    by Jan Xie at 5:19 AM

    I just met the same problem today, I'm using edge rails (version string = Rails 3.0.0.beta4). Should I create a different ticket?

Thursday, May 20 2010
4655 add _delete key for accepts_nested_attributes_for ? was updated in Ruby on Rails
  • Jan Xie
    Jan Xie commented at 10:43 AM

    I tried this way (and many other ways) of using :dependent, I think it doesn't work (I'm using rails on github). And in rails code it says:

    #   *Warning:* This...
  • Jan Xie
    Jan Xie created the ticket at 4:19 AM

    There is a _destroy key for nested model now, which indicates to destroy the associated object when set to true. It would be great if rails can also add a _dele...

Tuesday, May 12 2009
2395 count method doesn't work with specified conditions was updated in Ruby on Rails
  • Jan Xie
    Jan Xie commented at 4:19 AM

    Though I think it will work at most time, yes it will break some finder_sql. To make it works in all cases, a mini sql parser need to be introduced, which doesn...

Monday, May 11 2009
2395 count method doesn't work with specified conditions was updated in Ruby on Rails
  • Jan Xie
    • Assigned user set to Jeremy Kemper
    by Jan Xie at 9:11 AM
Thursday, April 02 2009
2395 count method doesn't work with specified conditions was created in Ruby on Rails
  • Jan Xie
    Jan Xie created the ticket at 8:15 AM

    AssociationCollection#count method won't take conditions in arguments into account if there is finder_sql or counter_sql. e.g.

    class User has_many :photos, :fin...

Wednesday, February 04 2009
1875 Posting a multipart form with file data can break params assignment (in 2.3) was updated in Ruby on Rails
  • Jan Xie
    Jan Xie commented at 4:30 PM

    Hi,

    I tested in edge rails (clone from github), can't reproduce the problem.

    Processing ContactsController#create (for 127.0.0.1 at 2009-02-05 00:28:22) [POST] ...