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.

Samuel Danielson's latest activity

Thursday, February 25 2010
4054 ActiveRecord casts everything to a string when Arel select is used. was created in Ruby on Rails
  • Samuel Danielson
    Samuel Danielson created the ticket at 2:59 PM

    I can reproduce this behavior with both sqlite and postgresql in rails 3.0.0.beta1.

    >> AnyModel.select('1.0 as t').first.t
    => "1.0"
    
    >> AnyModel.select('1 as t...
3871 Chaining scopes can trigger excessive db queries was updated in Ruby on Rails
  • Samuel Danielson
    Samuel Danielson commented at 5:37 AM

    Thanks for the patch. Went from this

    >> Cow.after('a').after('b').after('c').after('d').all
      Cow Load (0.5ms)  SELECT "kine".* FROM "kine" WHERE (name > 'a') ...
Tuesday, February 23 2010
3930 Uncountable inflections lead to exception with Rails 3 scaffolding was updated in Ruby on Rails
  • Samuel Danielson
    Samuel Danielson commented at 9:13 PM

    I can confirm this bug. fish_url and fish_path will also raise

    No route matches {:action=>"destroy", :controller=>"fish"}
    

    The following...

    resources :fish, :...
Thursday, February 04 2010
3841 link_to does not respect options like :confirm and :popup if url is specified... was updated in Ruby on Rails
  • Samuel Danielson
    Samuel Danielson commented at 4:21 PM

    The proper results in

    <%=link_to "Delete asset","post/delete/#{post.id}",:confirm=>"Do u want to delete this post"%>
    

    are due to you passing :confirm as the th...