Baris 70 - 72, itu apa kris? def show @employee = Employee.find_by_nip end
kok aneh? seharusnya : @employee = Employee.find_by_nip(params[:nip]) coba liat Employee < ActiveRecord::base, kamu bikin apa disana. paste kodenya di pastie.org lagi Reinhart --- On Tue, 5/13/08, kristianto <[EMAIL PROTECTED]> wrote: From: kristianto <[EMAIL PROTECTED]> Subject: Re: [id-ruby][Rails] Active record error To: id-ruby@yahoogroups.com Date: Tuesday, May 13, 2008, 2:18 AM Booking Heaven wrote: > > Coba di def show di controller kamu liat baik2 : > @employee atau @employees, terus kamu bikinnya : > > @employee = Employee.find( :all, bla..bla..bla) > > atau > > @employee = Employee.find_ by_nip > > coba kamu paste kode di sini : pastie.org, terus paste link setelah > kamu save kesini. coba cek sekalian di tabel employeenya. apakah ada > nama kolom nip. Ini cuma kasus kurang teliti aja kok hehe... > > ini linknya... http://pastie. org/195959 . kolom nip ada kq di tabel > employee... > > > > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ