[Rails-core] Need Consistent Way to Test for Template Existance

2009-02-11 Thread Mike Gaffney
. We need functionality like this to be able to gracefully fail templates over from user customized ones to the defaults delivered with Active Scaffold. I'm wondering the best way to go about requesting that some feature like this is added to the standard "API" of the view

[Rails-core] Re: Addition of 'or' method to String and NilClass in core_ext

2009-01-27 Thread Mike Gaffney
ifempty? Pascal Ehlert wrote: > Hi, > > How about adding some method #foo instead that returns nil if the > string is blank and self otherwise, so that you can do: > > self.email.foo || self.name > > This looks slightly better and more intuitive to me, if we can figure > out a descriptive name

[Rails-core] [Patch] Please take a look: Issue with TestSession delete & update

2009-01-26 Thread Mike Gaffney
I just made a patch and wanted to see if some people could verify it. It's attached to the ticket at: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1801-testsession-and-abstractstore-delete-and-update-methods-do-not-match-in-parameter-count#ticket-1801-4 Basically, with the

[Rails-core] Re: Integrity for CI instead of CC.rb?

2009-01-14 Thread Mike Gaffney
given branch (like 2.2-stable). I think this would do 2 things: 1) Encourage more people to have their apps in CI 2) Cause people to see changes in the core that affect their apps. This would get more, and more immediate feedback to the core team about commits. -Mike Gaffney On Wed, Jan 14, 2009

[Rails-core] Re: HABTM's select clause

2008-12-28 Thread Mike Gaffney
It's funny because the functionality is the only thing omitted from the email. -Mike Frederick Cheung wrote: > On 28 Dec 2008, at 17:53, Michael Koziarski wrote: > > >> Frederick Cheung wrote: >> >>> On 27 Dec 2008, at 15:10, Matt Jones wrote: >>> >>> The method ha