Re: treemaps
- From: Peter Marx <peter.marx@xxxxxxxxxxxxxxxx>
- Date: Mon, 28 Apr 2008 08:17:00 -0500
Javi Jimenez wrote:
First thing, stop saying "treemaps" and instead read your error
messages.. the error message is indicating that you are calling a method
entitled "font_size" on an object that doesn't support it. If you trace
your call stack you will find the culprit and tackle it from there. As
for acts_as_treemap, check the docs that shipped with the plugin.
hth
ilan
You were right, I have found this method and several other methos that
call this one. Finnally I have been able to fix it and show the treemap.
Thanks for your comments
Javi
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_helper.rb:30:in
`html_treemap'
app/views/sourceforge_map/index.html.erb:1:in
`_run_erb_47app47views47sourceforge_map47index46html46erb'
Could you give me an advice how you found the related spot ?
Regards
Peter
--
Posted via http://www.ruby-forum.com/.
.
- Follow-Ups:
- Re: treemaps
- From: Javi Jimenez
- Re: treemaps
- Prev by Date: net/ssh debug errors
- Next by Date: How to download a list of PDF files?
- Previous by thread: net/ssh debug errors
- Next by thread: Re: treemaps
- Index(es):
Relevant Pages
|