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.

Rolf Bjaanes's latest activity

Thursday, August 12 2010
5242 ActiveRecord::StatementInvalid: Mysql::Error: MySQL server has gone away was updated in Ruby on Rails
  • Rolf Bjaanes
    Rolf Bjaanes commented at 4:39 PM

    Added reconnect to my setup with mysql2 adapter.
    Seems to work this far.

5360 Allow Model to supply arguments to url_for in polymorphic_routes was updated in Ruby on Rails
  • Rolf Bjaanes
    Rolf Bjaanes commented at 2:32 PM

    I see what you are getting at, but it quickly becomes ambiguous and inflexible.

    Say I have one "Document" and I want to link to this,
    but it belongs to two or m...

Wednesday, August 11 2010
5360 Allow Model to supply arguments to url_for in polymorphic_routes was updated in Ruby on Rails
  • Rolf Bjaanes
    Rolf Bjaanes commented at 11:11 PM

    Could you give some details on the breakage of form_for and respond_with?
    You do know you can pretty much always use [@instance, @nested_instance] without url_f...

  • Rolf Bjaanes
    Rolf Bjaanes commented at 11:00 PM

    Seems a bit ambiguous to me.

    You don't always want to link to the resource as a nested resource.
    Oftentimes you link to it as just a resource, think shallow rou...

5242 ActiveRecord::StatementInvalid: Mysql::Error: MySQL server has gone away was updated in Ruby on Rails
  • Rolf Bjaanes
    Rolf Bjaanes commented at 8:38 PM

    Did those of you experiencing this use the gem or bundle rails from github?

    Trying to limit the time scope.

  • Rolf Bjaanes
    Rolf Bjaanes commented at 9:39 AM

    Also seeing this problem on both mysql and mysql2 adapters with 3.0RC.
    Not using New Relic. Only thing special with my setup is Nginx and Unicorn.

    I think this ...

Sunday, June 20 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Rolf Bjaanes
    Rolf Bjaanes commented at 1:44 PM

    On second thought:

    
    action_resource_resource_path
    

    seems much more consistent.

    Thanks, Andrew.
    Really appreciate it.

    Updating our code now.

  • Rolf Bjaanes
    Rolf Bjaanes commented at 1:19 PM

    @Andrew:

    I agree that your reply offers a solution, but I didn't think the extra configuration should be necessary.

    Thanks for your fix.

    It changes the default ...

Friday, June 18 2010
3765 Missing shallow routes in new router DSL was updated in Ruby on Rails
  • Rolf Bjaanes
    Rolf Bjaanes commented at 5:27 PM

    They are nested differently, but this is ignored since this commit.

    The original path methods was:

    
    sector_section_add_document
    sector_step_add_document
    

    and t...

  • Rolf Bjaanes
    Rolf Bjaanes commented at 3:37 PM

    This commmit creates conflicts for us.
    Same method points to both steps and section related member actions.

    rake routes:

    
       sector_add_document        /sector...