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.

gucki's latest activity

Monday, June 07 2010
4615 polymorphic_path not dry at all was updated in Ruby on Rails
  • gucki
    gucki commented at 9:39 AM

    Thanks Andrew. But this is only a solution to the error but not for the problem that the whole thing is still not DRY.

    Specifying a path with app.polymorphic_pa...

Wednesday, May 19 2010
4651 wrong class when using scope together with sti was updated in Ruby on Rails
  • gucki
    gucki commented at 10:34 AM

    Just upgraded to the latest rails version from git and it's working fine now. So I guess this bug has already been fixed and this ticket can be closed. :)

  • gucki
    gucki created the ticket at 10:05 AM

    Using rails beta3 and ruby 1.9.2-head.

    class User < ActiveRecord::Base
    scope :active, where(:active => true) end

    class NormalUser < User
    end

    User.active.first.c...

Monday, May 17 2010
4624 router does not accept member for resource was updated in Ruby on Rails
  • gucki
    • Tag changed from member, resource, router to fix, member, resource, router
    by gucki at 8:21 AM

    Here's a fix which just seems to work fine :)

    Replace

          unless @scope[:scope_level] == :resources
            raise ArgumentError, "can't use member outside re...
  • gucki
    • Tag set to member, resource, router
    by gucki at 8:14 AM
  • gucki
    gucki created the ticket at 8:13 AM

    A definition like

    resource :search do
      member do
        post :order
      end
    end
    

    results in
    ArgumentError: can't use member outside resources scope

    Member does onl...

Sunday, May 16 2010
4615 polymorphic_path not dry at all was updated in Ruby on Rails
  • gucki
    gucki commented at 1:24 PM

    Here's a little optimized version. Better performance and only invoke if a single record is passed to polymorphic_path. This improve backwards compatibility eve...

  • gucki
    gucki created the ticket at 12:30 PM

    Hi there,

    please consider the following simple example of nested resources:

    Models:
    team.rb (Team)
    team/member.rb (Team::Member)
    team/member/job.rb (Team::Membe...

Saturday, May 15 2010
4270 Arel 0.3.2 broke non-standard column types was updated in Ruby on Rails
  • gucki
    gucki commented at 5:20 PM

    The problems still occurs when using custom data types, which is quite common when using pgsql.

    Either there should be a way to easily add custom datatypes with...