>From the error I'd guess you've gotten some sort of recursion going in
an infinite loop.  I haven't done a lot with acts_as_list but should
the scope be :new_model_id?

On Jun 25, 9:18 am, Warren  Gavin <[email protected]> wrote:
> I am new to Hobo, and Rails for that matter, so please forgive my noob
> post.  I believe I am not understanding how to implement a belongs_to,
> has_many and acts_as_list in a self join scenario.
>
> I created a Hobo app, and added one hobo_model_resource named
> NewModel.  I modified app/models/new_model.rb to the following (the
> self join and acts_as_list):
>
> class NewModel < ActiveRecord::Base
>
>   hobo_model
>
>   fields do
>     name :string
>     new_model_id :integer
>     timestamps
>   end
>
>   acts_as_list :scope => :new_model
>
>   belongs_to :new_model
>   has_many :new_models, :dependent => true, :order => :position
>
> ...
>
> end
>
> I also modified the app/viewhints/new_model.rb and added:
>
>   children :new_models
>
> Generated my hobo_migration and all seemed good.
>
> Then I start the server up just fine.  Once I try to create a new
> entry for NewModel I get a "stack level too deep".  Generally speaking
> I believe I understand what is going on (at 40k feet).  Essentially we
> have a self join scenario that Hobo can't display from an edit/new
> perspective based on my setup.
>
> What I would like to do is manage new_models like a tree
> (acts_as_tree) and have tried adding this as well with the same
> result.
>
> Thoughts?  Thanks in advance.

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