The job model is of course defined, and when commenting out the
children line the app works as expected.


On 27 Nov, 00:18, Spiralis <[email protected]> wrote:
> Hi,
>
> I am getting:
>
> undefined method `klass' for nil:NilClass
>
> when I add children specification in my model. The file looks like
> this:
>
> class Artist < ActiveRecord::Base
>
>   hobo_model # Don't put anything above this
>
>   fields do
>     name           :string
> #...
>     timestamps
>   end
>
>   has_many :jobs
>   has_many :customers, :through => :jobs, :uniq => true
>
>   children :jobs
> ...

-- 
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