On Nov 18, 10:34 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On Nov 19, 6:28 am, Joshua Kolden <[EMAIL PROTECTED]> wrote:> On Nov 18,
> 7:48 pm, Philip Hallstrom <[EMAIL PROTECTED]> wrote:
>
> > > Any before_filters in place on this model? What does your
> > > development.log say? Do you see the INSERT query?
>
> > no before_filters (no filters of any kind). If I follow the
> > development.log while I'm doing an interactive console like above I
> > can see there is no output at all to the log when I do a save. If I
> > immediately try a different model and save it, no problem, and I see
> > some output in the dev log. It is very bazar. I keep thinking I must
> > be using a keyword in the model somewhere, but I can't find any. Maybe
> > I've broken my installation.
>
> Well if there's something odd with that model you'll have to show it
> before people can tell you what's wrong. Tip of the day: methods/
> associations called transaction are a bad thing.
>
> Fred
Haha, how did you know? I just figured it out and was on my way back
here to post the solution. I have a model for financial transactions
called.... you guess it 'transaction'. It's been working fine for
weeks, but I just added a polymorphic association from it to my
Allocation model. It appears this was the culprit:
class Allocation < ActiveRecord::Base
has_one :transaction, :as => :item
Thank you very much!!
j
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---