I totally reinstalled OSX (slow performance) in the hope this error would be fixed also
Im using haml (3.0.13) Rails 2.3.8 ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] Anyone knowss a solution? I cannot really find anything with google either so I thought the haml experts are my last resort :( On Jul 22, 10:52 pm, rubytastic <[email protected]> wrote: > I have a strange issue with haml which costs me hours to debug to no > result so far > > ActionView::TemplateError (undefined method `show' for > #<Haml::Precompiler::Line:0x10547ef40>) in app/views/home/ > index.html.haml: > haml (3.0.9) [v] lib/haml/precompiler.rb:178:in `precompile' > haml (3.0.9) [v] lib/haml/engine.rb:121:in `initialize' > haml (3.0.9) [v] rails/./lib/haml/template/plugin.rb:29:in `new' > haml (3.0.9) [v] rails/./lib/haml/template/plugin.rb:29:in > `compile' > haml (3.0.9) [v] rails/./lib/haml/helpers/action_view_mods.rb: > 13:in `render' > haml (3.0.9) [v] rails/./lib/haml/helpers/action_view_mods.rb: > 13:in `render' > warden (0.10.7) [v] lib/warden/manager.rb:35:in `call' > warden (0.10.7) [v] lib/warden/manager.rb:34:in `catch' > warden (0.10.7) [v] lib/warden/manager.rb:34:in `call' > haml (3.0.9) [v] rails/./lib/sass/plugin/rack.rb:41:in `call' > -e:1:in `load' > -e:1 > Showing app/views/home/index.html.haml where line # raised: > undefined method `show' for #<Haml::Precompiler::Line:0x10547ef40> > Extracted source (around line #): > The extracted source around line # is zero > > Im unable to pinpoint why this is happening there is no file line > number to check > I removed most of my code to see if i Could get things working again > to no result. > > A new ruby app with haml included in the enviroment as gem and a home > controller and view using haml works fine > It seems this error goes before any actual views are generated like > the error states > ActionView::TemplateError (undefined method `show' for > #<Haml::Precompiler::Line:0x10547ef40>) in app/views/home/ > index.html.haml: > > The same index.html.haml works fine in the new ruby app > > What Can I do to pinpoint this error and fix it? Im totally lost on > this looking for an answer for several days now > Anyone more expierienced with ruby /haml knows why this error occors > and knows a way to debug it? > Thanks in advanche -- You received this message because you are subscribed to the Google Groups "Haml" 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/haml?hl=en.
