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.

Piotr Sarnacki's latest activity

Thursday, November 18 2010
5878 Railtie initializers are not executed in rake tasks was updated in Ruby on Rails
5798 RoutingError when using form_for, nested resources and :as was updated in Ruby on Rails
  • Piotr Sarnacki
    Piotr Sarnacki commented at 5:02 AM

    @David: polymorphic_url is dumb in a way that it just maps model name to route:

    polymorphic_url(Post.find(1), Comment.find(2)) #=> /posts1/comments/2
    polymorph...
Thursday, October 28 2010
5871 Configurables needed in Rails::Engine and Rails:Application? was updated in Ruby on Rails
  • Piotr Sarnacki
    • Assigned user set to José Valim
    by Piotr Sarnacki at 12:02 PM

    You're right, they are no longer needed, railtie/configurable is used for all those classes.

Tuesday, October 19 2010
1905 app/helpers within plugin not being mixed in was updated in Ruby on Rails
  • Piotr Sarnacki
    Piotr Sarnacki commented at 1:40 PM

    Robert Glaser: After looking at code and rethinking that, I think the only sane way to handle that is namespacing helpers in your plugin. From Ruby point of vie...

  • Piotr Sarnacki
    Piotr Sarnacki commented at 12:50 PM

    Oops, that's weird. I'll fix it today.

Wednesday, October 13 2010
5798 RoutingError when using form_for, nested resources and :as was updated in Ruby on Rails
  • Piotr Sarnacki
    Piotr Sarnacki commented at 1:56 PM

    If you want to use :as option like that, you can set url for form_for manually. I don't know if there is some other option. I will comment here if I find someth...

  • Piotr Sarnacki
    Piotr Sarnacki commented at 10:18 AM

    The reason of this error is that form_for does not know about routes. form_for uses polymorphic_url for generating url, which is based on model names. If you ha...

Tuesday, October 12 2010
1905 app/helpers within plugin not being mixed in was updated in Ruby on Rails
  • Piotr Sarnacki
    Piotr Sarnacki commented at 3:31 PM

    For those who can't use rails master and don't want to wait for 3.1, I've created small railtie that fixes problem described in that ticket: http://github.com/d...

Saturday, September 25 2010
1905 app/helpers within plugin not being mixed in was updated in Ruby on Rails