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.

Michael Trim's latest activity

Wednesday, July 23 2008
138 script/generate glitch for controllers in modules was updated in Ruby on Rails
  • Michael Trim
    • Tag changed from generators, railties to bug, generators, railties
    by Michael Trim at 11:18 PM

    Shouldn't this ticket be reopened, since the patch has been reverted? (In any case the patch doesn't do the right thing as far as I can tell.)

    Like kain, I f...

Tuesday, June 24 2008
476 has_many: collection.build doesn't allow passing a block to set attributes was updated in Ruby on Rails
Monday, June 23 2008
476 has_many: collection.build doesn't allow passing a block to set attributes was updated in Ruby on Rails
  • Michael Trim
    Michael Trim commented at 9:11 PM

    Attached a patch with this functionality (implemented in the same way as for collection.create)

  • Michael Trim
    Michael Trim created the ticket at 8:49 PM

    Given:

    class Foo < ActiveRecord::Base
      has_many :bars
    end
    
    class Bar < ActiveRecord::Base
    end
    

    It is possible to set attributes of a newly created Bar,...

Friday, June 06 2008
333 Autocorrect plural ModelName passed to script/generate scaffold was updated in Ruby on Rails
  • Michael Trim
    Michael Trim commented at 11:24 PM

    This probably deserves a separate ticket, but what about 'uncountable' names e.g. "news" (where "news".singularize == "news".pluralize == "news")? This works ...

321 Add :protect_against_forgery option to form_tag was updated in Ruby on Rails
  • Michael Trim
    • Title changed from Add :no_csrf_token option to form_tag to Add :protect_against_forgery option to form_tag
    by Michael Trim at 2:35 AM

    Updated patch attached, although thinking about it a bit more I'm not sure whether this is worth the bother since one can easily write the html directly.

Tuesday, June 03 2008
321 Add :no_csrf_token option to form_tag was created in Ruby on Rails
  • Michael Trim
    Michael Trim created the ticket at 8:05 PM

    This patch adds an option to prevent the CSRF (Cross-Site Request Forgery) protection token being included for an individual form, whilst still having the forg...