> Hi Javi,
>
> I have also the missing method "font_size" problem. I exactly used the
> Sourceforge treemap database and the coding from the tutorial.
> Plugin installation for acts_as_tree and acts_as_treemap worked.
>
> I'm on Ruby 1.8.6 and Rails 2.0.2.
>
> The trace gives a beginner like me no indication what's wrong:
>
> undefined method `font_size' for #<SourceforgeNode:0x35da8c4>
> ...
> C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in
> `method_missing'
> C:/ruby/lib/ruby/gems/1.8/gems/ruby-treemap-0.0.2/lib/treemap/html_output.rb:127:in
> `draw_label'
> C:/ruby/lib/ruby/gems/1.8/gems/ruby-treemap-0.0.2/lib/treemap/html_output.rb:138:in
> `draw_node_body'
> C:/ruby/lib/ruby/gems/1.8/gems/ruby-treemap-0.0.2/lib/treemap/html_output.rb:156:in
> `draw_node'
> C:/ruby/lib/ruby/gems/1.8/gems/ruby-treemap-0.0.2/lib/treemap/html_output.rb:95:in
> `draw_map'
> C:/ruby/lib/ruby/gems/1.8/gems/ruby-treemap-0.0.2/lib/treemap/html_output.rb:77:in
> `to_html'
> vendor/plugins/acts_as_treemap/lib/treemap_er.rb:30:in
> `html_treemap'
> app/views/sourceforge_map/index.html.erb:1:in
> `_run_erb_47app47views47sourceforge_map47index46ht ml46erb'
>
> Could you give me an advice how you found the related spot ?
>
> Regards
>
> Peter
hi Peter!
I found the lines where font_size was called on the gem code and just
commented them and it worked (I realized that font_size was not used any
more).
I did not like the result so finnally i did not used it on my project.
Maybe you should use a javascript in order to have a nice view. If you
find anything interesting please share it!
Regards,
Javi
--
Posted via
http://www.ruby-forum.com/.