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.

Rasmus Rønn Nielsen's latest activity

Wednesday, October 13 2010
5798 RoutingError when using form_for, nested resources and :as was updated in Ruby on Rails
  • Rasmus Rønn Nielsen
    Rasmus Rønn Nielsen commented at 10:22 AM

    Thank you very much for that quick response.

    So I must accept named routes like blog_post_blog_post_comments_path if I want to use form_for? Or is there a "Rail...

  • Rasmus Rønn Nielsen
    Rasmus Rønn Nielsen created the ticket at 9:54 AM

    I get the following error when trying to use form_for with nested resources, the nested resource route being defined with the :as options:

    No route matches {:c...
Wednesday, August 18 2010
5400 ActiveRecord::Serialization.serializable_hash uses base :only/:expect for inc... was created in Ruby on Rails
  • Rasmus Rønn Nielsen
    Rasmus Rønn Nielsen created the ticket at 10:31 AM

    User (cols: id, name, age) has_many Group (cols: id, name)

    The following results is made via console on rails3 edge/ruby1.9.2-rc2.

    User.first.serializable_hash...
Tuesday, August 17 2010
5374 as_json should return a hash for ActiveModel/ActiveRecord objects was updated in Ruby on Rails
  • Rasmus Rønn Nielsen
    Rasmus Rønn Nielsen commented at 8:56 PM

    I'm having this problem as well. Jakub's fix works great for me. Thanks Jakub!

Saturday, June 12 2010
4494 Ruby 1.9.2-head's JSON support breaks to_json for arrays of records was updated in Ruby on Rails
  • Rasmus Rønn Nielsen
    Rasmus Rønn Nielsen commented at 5:08 PM

    I just installed ruby1.9.2-head and beta4 today. I think I'm getting the same error.

    { "test" => "test" } works, but { "test" => :test } fails...

    rasmus@machin...
Wednesday, May 26 2010
4708 Query cache broken when using associations with scopes was created in Ruby on Rails
  • Rasmus Rønn Nielsen
    Rasmus Rønn Nielsen created the ticket at 4:51 PM

    I assume that the following should fire one sql query for each line:

    u = User.first
    u.posts.older_than 2.seconds
    u.posts.older_than 2.hours

    For me, it doesn't. ...

Tuesday, February 23 2010
2279 render :layout with block and multiple yields renders twice was updated in Ruby on Rails
  • Rasmus Rønn Nielsen
    Rasmus Rønn Nielsen commented at 9:38 AM

    I've run into this problem running ruby1.9.1 and rails 3 beta. I'm trying to use two "render :layout do [something] end" inside each other.