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.

José Valim's latest activity

Wednesday, April 01 2009
2391 Allow strings to be sent as collection to select was created in Ruby on Rails
  • José Valim
    José Valim created the ticket at 11:55 AM

    Why?

    The main reason is to allow the following:

    
    fields_for @post do |f|
      f.select(:category_id, grouped_options_for_select(...))
    end
    

    Since grouped_optio...

2390 Object names with underscore do the wrong lookup in I18n on error_messages_for was created in Ruby on Rails
  • José Valim
    José Valim created the ticket at 10:30 AM

    If I have an object name like "book_seller." On error_messages_for it will search for "book seller" instead of "book_seller".

    A quick solution is two maintain b...

Saturday, March 21 2009
1852 Patch to add index length support was updated in Ruby on Rails
  • José Valim
    José Valim commented at 11:41 AM

    Any chance this making into core now? :)

Friday, March 20 2009
2301 Ensure AR validation errors to be ordered in declared order was updated in Ruby on Rails
Thursday, March 19 2009
2172 Nested model forms error on loading data from belongs_to associations that ev... was updated in Ruby on Rails
  • José Valim
    José Valim commented at 11:53 AM

    What if we raise an error on fields_for just if the parent form object is not nil?

    That would cover both cases:

    1. It would work without objects (@post=nil and @...

Wednesday, March 18 2009
2262 Associations are picking the wrong class was updated in Ruby on Rails
  • José Valim
    José Valim commented at 1:17 PM

    I just updated the ticket. Someone from core might close this one soon.

  • José Valim
    José Valim commented at 8:43 AM

    Andrew, I see you case.

    However, I still think that a simple patch should be applied.

    At least one that makes Admin::Account when belongs_to User have a default...

Tuesday, March 17 2009
2262 Associations are picking the wrong class was updated in Ruby on Rails
  • José Valim
    José Valim commented at 6:00 PM

    store_full_sti_class is true. Calling parent.class_eval in compute_type works, but in my case the parent is Object.

    However, I cannot supply a patch with parent...

  • José Valim
    José Valim commented at 5:42 PM

    I'm afraid this can't be easily reproduced. The plugin I'm using that showed me this conflict is Typus (http://github.com/fesplugas/typu...>

    In this case, Typus...

  • José Valim
    José Valim commented at 5:23 PM

    Nops.

    
    User == Admin::User #=> false
    

    Have you tried with Admin::User being a module?