Re: treemaps



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

.



Relevant Pages

  • Re: Publishing WebForms to Production System
    ... Its already Off but same error message. ... <!-- CUSTOM ERROR MESSAGES ... Set trace enabled="true" to enable application trace logging. ... > and upload the modified web.config file to your server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Publishing WebForms to Production System
    ... Its already Off but same error message. ... <!-- CUSTOM ERROR MESSAGES ... Set trace enabled="true" to enable application trace logging. ... > and upload the modified web.config file to your server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Stop 0x0000000a error debug analysis
    ... process or driver tried to access a memory location to which it did not ... You receive a "Stop 0x0000000A" error message in Windows XP ... I've posted the full trace below (note the path to ntoskrnl.exe points ... Mini Kernel Dump File: Only registers and stack trace are available ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Page cannot be displayed
    ... "Robert Aldwinckle" wrote: ... > I would trace it. ... Trace both the responses to IE and the firefox requests. ... > the error message could be the university site's reaction to that. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Stop 0x0000000a error debug analysis
    ... You receive a "Stop 0x0000000A" error message in Windows XP ... I've posted the full trace below (note the path to ntoskrnl.exe points ... Mini Kernel Dump File: Only registers and stack trace are available ... faulty as, as mentioned above, it's rock solid in safe mode. ...
    (microsoft.public.windowsxp.help_and_support)