Re: [Rails-core] ActiveRecord update_attributes filtering

2006-05-23 Thread Marcel Molina Jr.
On Wed, May 24, 2006 at 03:30:56AM +0200, Laszlo Gyula wrote: > I was a little concerned with the rails de-facto update method (as used > in rails's scaffolds), because it simply calls > .update_attributes(params[:]. This is very DRY indeed, but > when some of the table's fields contain valuable

[Rails-core] ActiveRecord update_attributes filtering

2006-05-23 Thread Laszlo Gyula
hi, I was a little concerned with the rails de-facto update method (as used in rails's scaffolds), because it simply calls .update_attributes(params[:]. This is very DRY indeed, but when some of the table's fields contain valuable information that should be writable only by certain actions, y

Re: [Rails-core] Filtering with ActiveRecord

2006-05-23 Thread Rick Olson
On 5/23/06, Hampton <[EMAIL PROTECTED]> wrote: Is there anything I can do to help this patch get vetted quickly and efficiently? -hampton. Make a plugin and get folks to use it. I'm not sold on this idea at all, personally. -- Rick Olson http://techno-weenie.net _

[Rails-core] habtm build and create

2006-05-23 Thread Josh Susser
The API docs for habtm don't include mention of #build or #create as methods on the association. However, both methods exist in the HasAndBelongsToManyAssociation class. HABTM implements #build, while #create is inherited from AssociationCollection. #build seems to work fine, though ther

Re: [Rails-core] Filtering with ActiveRecord

2006-05-23 Thread Hampton
Is there anything I can do to help this patch get vetted quickly and efficiently?-hampton.On 5/21/06, Hampton < [EMAIL PROTECTED]> wrote:Introducing Patch #5143! http://dev.rubyonrails.org/ticket/5143This patch allows for a hash to be passed into the :condition parameter of the ActiveRecord::Base#f

Re: [Rails-core] #5167: Observer generator

2006-05-23 Thread Marcel Molina Jr.
On Tue, May 23, 2006 at 09:00:50AM -0700, Kevin Clark wrote: > Could it be a plugin? > > On 5/23/06, Francois Beausoleil <[EMAIL PROTECTED]> wrote: > >http://dev.rubyonrails.org/ticket/5167 > > > >Small patch that adds a new generator for observers. I never remember > >what to inherit from when I

Re: [Rails-core] #5167: Observer generator

2006-05-23 Thread Kevin Clark
Could it be a plugin? On 5/23/06, Francois Beausoleil <[EMAIL PROTECTED]> wrote: http://dev.rubyonrails.org/ticket/5167 Small patch that adds a new generator for observers. I never remember what to inherit from when I want a new observer. That solves the problem nicely and simply. Didn't put

[Rails-core] #5167: Observer generator

2006-05-23 Thread Francois Beausoleil
http://dev.rubyonrails.org/ticket/5167 Small patch that adds a new generator for observers. I never remember what to inherit from when I want a new observer. That solves the problem nicely and simply. Didn't put a lot of options in this. A further patch could optionally generate the proper af