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.

Adam S's latest activity

Friday, September 04 2009
2999 filter_parameter_logging throws exception with ruby 1.9.1 was updated in Ruby on Rails
  • Adam S
    Adam S commented at 9:32 AM

    I'm sorry, the test case fails on both 1.8 and 1.9, but the test logic is correct. It is the filter_parameter logic that needs fixing.

    You can check it yourself...

  • Adam S
    Adam S commented at 9:31 AM

    I'm sorry, the test case fails on both 1.8 and 1.9, but the test logic is correct. It is the filter_parameter logic that needs fixing.

    You can check it yourself...

  • Adam S
    Adam S commented at 9:16 AM

    This is related to String.each no longer being available in Ruby 1.9...

    To trigger the bug,

    1. Use Ruby 1.9.1
    2. add a route: map.connect '*path', :controller => 'ho...
Wednesday, August 26 2009
2188 Encoding error in Ruby1.9 for templates was updated in Ruby on Rails
  • Adam S
    Adam S commented at 2:11 PM

    Are you sure this isn't the mysql gem?

    I used the process here: and I can create multibyte users etc. In fact no real issues with multibyte now...

    http://www.t...

Friday, July 31 2009
2978 rake gems:refresh_specs not working as expected... was updated in Ruby on Rails
  • Adam S
    Adam S commented at 9:28 AM

    Sure... I fixed this myself. I deleted the self-unpacked gem and rake gems:unpacked it.

    But it had me slightly stumped and annoyed for a bit...

    I wanted to unpa...

  • Adam S
    Adam S commented at 7:10 AM

    Sorry should specify a little more info:

    Rails 2.3.3, Ruby 1.8.6

    Error trace:

    rake gems:refresh_specs --trace
    (in /Users/adam/dev/temp/testing)
    ** Invoke gems:...
  • Adam S
    Adam S created the ticket at 7:09 AM
    1. create new rails project
    2. unpack a gem manually in vendor/gems
    cd vendor/gems
    gem unpack test_gem
    
    1. run rake gems:refresh_specs
Wednesday, July 22 2009
2188 Encoding error in Ruby1.9 for templates was updated in Ruby on Rails
  • Adam S
    Adam S commented at 4:56 PM

    I'm also seeing this issue with Ruby 1.9 and HAML templates.
    It's very annoying and confusing... I think the only solution is for Rails to set a default encodin...

Monday, February 09 2009
1901 objects created by find_or_create_by_ methods do not call after_initalize/aft... was updated in Ruby on Rails
  • Adam S
    Adam S commented at 1:56 AM

    Short answer, no.

    That will probably work. The confusing thing is that the method above worked some of the time (ie when i didn't use find_or_create_by ;).

    Ehhh...

Saturday, February 07 2009
1901 objects created by find_or_create_by_ methods do not call after_initalize/aft... was created in Ruby on Rails
  • Adam S
    Adam S created the ticket at 1:20 AM

    class MyModel < ActiveRecord::Base

    def after_initialize
      attrib1 = 'value'
    end
    
    

    end

    class MyModelTest < ActiveSupport::TestCase

    test "attrib should be value...