What sort of trick does activerecord use so that in the model, I don''t have to define an accessor method for each field in my db table? I was looking in active record base and that is a big file to start navigating. Thanks, Peter _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Jacob Quinn Shenker
2005-Nov-05 03:06 UTC
Re: How does activerecord make make attributes available
method_missing On 11/4/05, Peter Michaux <petermichaux@gmail.com> wrote:> What sort of trick does activerecord use so that in the model, I don't have > to define an accessor method for each field in my db table? I was looking in > active record base and that is a big file to start navigating. > > Thanks, > Peter > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails