Hi, no crappy data. I really think i have a normalization issue :( I'll try to change everything and see how it goes.
thanks 8 P. On 5 avr, 19:08, Frederick Cheung <[email protected]> wrote: > On Apr 5, 5:55 pm, P <[email protected]> wrote: > > > Hi, > > thanks hassan for the quick reply. > > I applied your suggestions + had to change a few other things (folder > > name for the views, some routes...) but that didn't help either :( > > it should also be belongs_to :purchase_type rather than purchaseType > but I don't think that will actually make a difference (and if you > made that change you would have to rename the column to > purchase_type_id). > Have you checked that you don't simply have bad data in your database > (ie a saving with a purchaseType_id for which there is no > corresponding PurchaseType ? > > Fred > > > any other idea? > > > thanks > > P. > > > On 5 avr, 18:46, Hassan Schroeder <[email protected]> wrote: > > > > On Sun, Apr 5, 2009 at 8:46 AM, P <[email protected]> wrote: > > > > the controller (saving_controller): > > > > > class SavingController < ApplicationController > > > > s/b SavingsController > > > > > class PurchaseType < ActiveRecord::Base > > > > has_many :saving > > > > s/b has_many :savings > > > > Try changing that and let us know what happens :-) > > > > -- > > > Hassan Schroeder ------------------------ [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

