Hi Fred, Thanks for pointing that out , i thought of a code error somewhere but after I delete the index.html.haml it throws error missing template index.html.haml now I recreated the file with a blank file no contents but then the error pops up again, it could be some disk based issue so im now running disk utility (osx) hope that solves the issue
On Jul 19, 3:37 pm, Frederick Cheung <[email protected]> wrote: > On Jul 19, 1:01 pm, rubybox <[email protected]> wrote: > > > I changed fairly much in my app without constant testing ( my bad ) > > now i get an error which I cannot seem to debug point my finger on. > > Looks like haml's blowing up trying to precompile your > index.html.haml view, which could either be that this file is very > screwed or that there's a bug in haml itself. > > Fred > > > > > I have a home controller which just displays a welcome page this had a > > index only action. > > Whatever controller I try to open i always get above error message > > > 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 > > Any more advanched ruby on rails programmers can help me point my > > finger on where this error comes from? > > I dont understand every controller I try to open in browser gives this > > error message, > > cleaning my routes.rb to the rails default and setting only home > > controller as root also does not resolve this error. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en.

