Hey,

check if the belongs_to reverse reflection exists in the according
model, I think there are two reasons for getting this error:

1. you forgot to declare the association
2. it doesn't work with STI subclasses currently

greetings,
Christoph

On Wed, Feb 25, 2009 at 12:13:21AM -0800, delirious wrote:
> 
> Hi,
> 
> despite reading every single bit of info I could find about hobo, I
> can't seem to make this work: I started several projects with hobo
> 0.85 (rails 2.2.2) and whenever I use auto_action_for I get the error
> 
> > You have a nil object when you didn't expect it!
> > The error occurred while evaluating nil.macro
> 
> I found a discussion dating from nov 2008 about this problem. I tried
> downgrading rails to 2.1.2 as suggested but hobo 0.85 requires 2.2.2
> to run so I'm stuck. Please advise. I would LOVE to use hobo; it looks
> like a great framework but I am utterly stuck :-(
> 
> models:
> Client has_many :works
> Work belongs_to :client
> 
> controller:
> >class WorksController < ApplicationController
> >  hobo_model_controller
> >  auto_actions :all
> >  auto_actions_for :clients, [:create, :new ]
> >end
> 
> I run into this problem before I customized anything in the app.
> 
> The stacktrace is at http://pastie.org/399500.
> 
> All help welcome,
> Simon
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to