David Chelimsky wrote: > By "before and after" I meant what the code looked like before you made > the change you want to make, and what it looked like after the change.
sorry I misunderstood your word. def process! #transaction block bankbook = self.bankbooks.build bankbook = user.bank.bankbooks.build bankbook.withdraw #end end that's the before code.and I change it to. def process! #transaction block bank.withdraw #end end because I have been miss the create banbooks in bank model withdraw method. code like -- # bank model def xxxx bankbook = bankbooks.build bankbook.withdraw end -- hope I clear my thought. -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users