gucki
Not a member
gucki's latest activity
Monday, June 07 2010
-
gucki commented at 9:39 AMThanks 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
-
gucki commented at 10:34 AMJust 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 created the ticket at 10:05 AMUsing rails beta3 and ruby 1.9.2-head.
class User < ActiveRecord::Base
scope :active, where(:active => true) endclass NormalUser < User
endUser.active.first.c...
Monday, May 17 2010
-
- Tag changed from member, resource, router to fix, member, resource, router
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 created the ticket at 8:13 AMA definition like
resource :search do member do post :order end endresults in
ArgumentError: can't use member outside resources scopeMember does onl...
Sunday, May 16 2010
-
gucki commented at 1:24 PMHere'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 created the ticket at 12:30 PMHi 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
-
gucki commented at 5:20 PMThe 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...