Re: [Rails] Path helper doesn't get object's id automatically anymore?

2011-11-24 Thread 島 涼平
hi. did you try "rake routes"? (2011/11/23 2:39), Heinz Strunk wrote: Hey, for some reason my admin_club_path(club) doesn't work anymore but only admin_club_path(club.id). Anyone know what the reason could be? This is the error message: No route matches {:action=>"show", :controller=>"admin/cl

[Rails] Path helper doesn't get object's id automatically anymore?

2011-11-22 Thread Heinz Strunk
Hey, for some reason my admin_club_path(club) doesn't work anymore but only admin_club_path(club.id). Anyone know what the reason could be? This is the error message: No route matches {:action=>"show", :controller=>"admin/clubs", :id=>#} Apparently it takes the whoe object as id but why? -- Po