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.

David Trasbo's latest activity

Monday, September 20 2010
5578 AbstractController#asset_path overrides routes helper was updated in Ruby on Rails
  • David Trasbo
    • State changed from new to open
    by David Trasbo at 7:39 PM

    Michael,

    Yes, asset_path is supposed to be accessible in both Action Mailer and Action Controller.

    I can see two ways around it. You could obviously rename it. ...

5570 Fragment cache logging fails in 3.0 when fragment path contains printf chars,... was updated in Ruby on Rails
  • David Trasbo
    • State changed from new to resolved
    • Importance changed from to Low
    by David Trasbo at 7:25 PM

    This issue is gone in Rails master:

    Warmup:

    Started GET "/people" for 127.0.0.1 at 2010-09-20 20:21:45 +0200
      Processing by PeopleController#index as HTML
    Exi...
5667 Ruby 1.9: Strings no longer respond to #each was updated in Ruby on Rails
  • David Trasbo
    • State changed from new to open
    • Importance changed from to Low
    by David Trasbo at 6:52 PM
  • David Trasbo
    • Assigned user set to José Valim
    • Tag set to patch
    by David Trasbo at 12:18 PM

    Here you go. Simply makes the response body an array instead.

  • David Trasbo
    David Trasbo created the ticket at 12:14 PM

    A test in railties/test/application/routing_test.rb is causing Rack to try calling #each on a string, which doesn't work in Ruby 1.9. I'll post a fix in a minut...

David Trasbo David Trasbo was invited to Ruby on Rails at 4:28 PM
5652 config.filter_parameters doesn't affect debug(params) was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 12:46 PM

    I totally agree with Rohit.

    There will always be a way to somehow disclose filtered params in development. A silly example:

    class SessionsController < Applicat...
5668 Ruby 1.9: Strings no longer respond to #each was updated in Ruby on Rails
  • David Trasbo
    • Assigned user set to Rohit Arondekar
    by David Trasbo at 12:19 PM

    Urgh! Double-post of #5667. Can be marked as duplicate.

  • David Trasbo
    David Trasbo created the ticket at 12:17 PM

    A test in railties/test/application/routing_test.rb is causing Rack to try calling #each on a string, which doesn't work in Ruby 1.9. I'll post a fix in a minut...

5662 Add missing parenthesis was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 11:26 AM

    -1

    I disagree. It's only good practice to add parenthesis if it improves readability, e.g. if you have multiple method calls on a single line separated by if or...