Ryan Bates
Railscasts · Not a member
Ryan Bates's latest activity
Friday, December 05 2008
-
Ryan Bates commented at 12:47 AMThat is a neat idea, but I don't know if it's completely necessary. You could create a helper method to handle this:
# helpers/paths_helper.rb def school_pat...
Friday, November 21 2008
-
Ryan Bates commented at 7:27 PMOops, the first code snippet should be:
class Book < ActiveRecord::Base named_scope :recently_read, :order => "last_read desc" end Book.recently_read.first... -
Ryan Bates commented at 7:25 PMSorry, perhaps I'm missing something. Is there a reason you don't like doing this?
class Book < ActiveRecord::Base named_scope :most_recently_read, :order ...
Friday, October 31 2008
-
Ryan Bates commented at 9:39 PMI run into this conflict problem quite frequently too. It's really the only painful part left when working with migrations and branches.
However, I don't think ...
Tuesday, October 28 2008
-
Ryan Bates commented at 8:37 PMHere's a patch which fixes this problem by checking for the existence of the content_for ivar before executing the block. Your tests are included.
-
Ryan Bates commented at 6:56 PMThis should be fixable by checking for the existence of the @content_for_* instance variable before executing the block. I'll try to write up a patch later toda...
Monday, August 25 2008
-
Ryan Bates commented at 3:57 PM+1, I also think this regular expression as a whole needs to be improved or replaced with something better. But I'm not sure what that is. Any ideas?
One possi...
Friday, August 22 2008
-
-
Ryan Bates created the ticket at 4:01 PMThere are a couple differences when rendering a partial with an array instead of passing the collection option.
- empty array does not return nil
- extra options ...