> You are recursively calling the method color() until your stack goes 
> through the roof.  I believe your error has nothing at all to do with 
> the treemap plugin.  If you want, you can post the code for further 
> analysis
> 
> hth
> 
> ilan

thanks ilan!

My view index.rhtml has only this line:

<%= html_treemap(@root) %>

The controller 'breed_controller':

class BreedController < ApplicationController
  def index
    # Retreive the root node of the treemap
    @root = Breed.find(1)
  end
end

and the model:

class Breed < ActiveRecord::Base
  acts_as_tree :order => "total"
  acts_as_treemap :label => "name", :size => "total", :color => "color"
end


As you can see is very simple code to use this plugin, that is why I 
can't see the error, maybe in the database?

id  parent_id  total    name     color
1      null    79    'pit bull' '15.30'
2        1     67   'york-shire' '8.11'
3        2     65    'bull dog'  '7.15'
4        3     60     'samoyedo' '6.00'

very simple too ....

What is happening? :(

Thank you!
-- 
Posted via http://www.ruby-forum.com/.