Have you run the migration generator yet?  Only reason I ask is that
error sounds very familiar...

On Feb 26, 3:38 pm, Ivan <[email protected]> wrote:
> Hi,
>
> I'm trying Hobo for the first time, so maybe I'm missing something,
> but it seems polymorphic associations aren't working properly. Steps
> to reproduce:
>
> hobo poly
> cd poly
> script/generate hobo_model_resource address street:string
> script/generate hobo_model_resource person name:string
> Add "belongs_to :addressable, :polymorphic => true" to address model
> Add "has_many :addresses, :as => :addressable" to person model
>
> When runing the server and upon trying to create an address, the
> following error is thrown:
>
> NoMethodError in AddressesController#new
> undefined method `view_hints' for ActiveRecord::Base:Class
>
> Trace:http://pastie.org/844950
>
> So, what am I doing wrong?
>
> Thanks!

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