# Strange Error undefined method \`show' for # see no way to debug, suggestions?

**URL:** <https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826>\
**Category:** Rails\
**Created:** [July 19, 2010, 2:04pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826 "2010-07-19T14:04:00Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 19, 2010, 2:04pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/1 "2010-07-19T14:04:00Z")

</div>

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.

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.

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 19, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/2 "2010-07-19T15:30:40Z")

</div>

Nobody some ideas clues? I have spend like 2 hours trying to fix this :  
(

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 19, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/3 "2010-07-19T15:39:27Z")

</div>

On Jul 19, 1:01 pm, rubybox [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 19, 2010, 9:17pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/4 "2010-07-19T21:17:21Z")

</div>

Anyone else some suggestions?  
After removing the index.html.haml file i get the default missing  
template error but if i open _any_ other controller for example /post  
i get EXACT the same error… why is this happening ?  
It seems that before any rendering is done it looks for an action  
“show” somehow even if i remove all routes and have just the basic  
ones

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 19, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/5 "2010-07-19T16:54:25Z")

</div>

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 C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 19, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/6 "2010-07-19T22:55:44Z")

</div>

I could go back to a backup but loose a lot of new work on the app  
Still hope to find a fix somewhere but this error is really strange  
not anything else ive seen so far been able to  
debug all errors i came across with google perhaps its a system disk  
error, i repaired disk and no errors in my project path  
so this is still a very very strange issue. hope to find a soiution,  
if anyone has any ideas i would love to hear them.  
My older backup seems to work fine

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 19, 2010, 10:38pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/7 "2010-07-19T22:38:10Z")

</div>

On 19 July 2010 20:16, rubybox [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Anyone else some suggestions?  
> After removing the index.html.haml file i get the default missing  
> template error but if i open _any_ other controller for example /post  
> i get EXACT the same error.. why is this happening ?  
> It seems that before any rendering is done it looks for an action  
> “show” somehow even if i remove all routes and have just the basic  
> ones

Can you go back to your most recent known good backup and check it  
still works? This will prove whether it is a system problem or  
related to changes made in your app.

Another thought might be to try creating a new simple app and make  
sure that works.

Colin

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 19, 2010, 11:06pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/8 "2010-07-19T23:06:16Z")

</div>

Could you not top-post please, it makes it difficult to follow the  
thread, insert your reply in the previous post instead. Thanks.

On 19 July 2010 21:54, rubybox [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I could go back to a backup but loose a lot of new work on the app  
> Still hope to find a fix somewhere but this error is really strange  
> not anything else ive seen so far been able to  
> debug all errors i came across with google perhaps its a system disk  
> error, i repaired disk and no errors in my project path  
> so this is still a very very strange issue. hope to find a soiution,  
> if anyone has any ideas i would love to hear them.  
> My older backup seems to work fine

By confirming that the backup works then at least you have confirmed  
that it is related to the app and not the system. I can only suggest  
removing bits from the app till you get something that works and  
working back from there.

I know it doesn’t help, but I think it is worth pointing out for the  
future the desirability of using a source control system such as git.  
Along with frequent commits (often several times a day) this means  
that one can always work backwards to find when a problem was  
introduced.

Colin

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 19, 2010, 11:47pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/9 "2010-07-19T23:47:22Z")

</div>

Colin L. wrote:  
[…]

> I know it doesn’t help, but I think it is worth pointing out for the  
> future the desirability of using a source control system such as git.

Hell yeah. To the OP: you’ve just discovered why tests and version  
control are both indispensable. Do no more development without both.

> Along with frequent commits (often several times a day)

Several times a _day_? I tend to commit several times an _hour_ at  
times!

> this means  
> that one can always work backwards to find when a problem was  
> introduced.

Yup. And git bisect is wonderful.

> Colin

## Best,

Marnen Laibow-Koser

> **[marnen.org: Homepage of Marnen Laibow-Koser](https://marnen.org/)**

[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 20, 2010, 12:09am UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/10 "2010-07-20T00:09:30Z")

</div>

thanks for the comments so far,  
I only did a git commit on every deploy I now will do it after each  
few changes…  
Removed some stuff from the app I added before the error occured still  
same error  
This is my full trace/error report

NoMethodError in Home#index  
Showing app/views/home/index.html.haml where line # raised:  
undefined method `show’ for #Haml::Precompiler::Line:0x1061c0fc8

Extracted source (around line #):

RAILS\_ROOT: /Users/local/Desktop/myapps/apache2/rubydocs/portal  
Application Trace | Framework Trace | Full Trace  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/  
haml-3.0.9/lib/haml/precompiler.rb:178:in `precompile' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ haml-3.0.9/lib/haml/engine.rb:121:in`initialize’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/  
haml-3.0.9/lib/haml/template/plugin.rb:29:in `new' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ haml-3.0.9/lib/haml/template/plugin.rb:29:in`compile’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/  
template\_handler.rb:11:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/ renderable.rb:19:in`compiled\_source’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/  
renderable.rb:68:in `compile!' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/ renderable.rb:61:in`compile’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/  
renderable.rb:28:in `render_without_active_scaffold' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/ active_scaffold/lib/extensions/action_view_rendering.rb:94:in`render’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/  
template.rb:205:in `render_template' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb: 265:in`render\_without\_active\_scaffold’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/  
active\_scaffold/lib/extensions/action\_view\_rendering.rb:61:in  
`render_without_haml' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ haml-3.0.9/lib/haml/helpers/action_view_mods.rb:13:in`render’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/base.rb:  
348:in `_render_with_layout' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb: 262:in`render\_without\_active\_scaffold’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/  
active\_scaffold/lib/extensions/action\_view\_rendering.rb:61:in  
`render_without_haml' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ haml-3.0.9/lib/haml/helpers/action_view_mods.rb:13:in`render’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
base.rb:1250:in `render_for_file' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ base.rb:936:in`render\_without\_benchmark’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
benchmarking.rb:51:in `render_without_active_scaffold' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/  
1.8/benchmark.rb:308:in `realtime' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
benchmarking.rb:51:in `render_without_active_scaffold' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/ active_scaffold/lib/extensions/action_controller_rendering.rb:13:in`render’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
base.rb:1326:in `default_render' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ base.rb:1332:in`perform\_action\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
filters.rb:617:in `call_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ filters.rb:610:in`perform\_action\_without\_benchmark’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/  
1.8/benchmark.rb:308:in `realtime' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ rescue.rb:160:in`perform\_action\_without\_flash’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
flash.rb:151:in `perform_action_without_render_component' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/ render_component/lib/components.rb:39:in`perform\_action’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
base.rb:532:in `send' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ base.rb:532:in`process\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
filters.rb:606:in `process' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ base.rb:391:in`process’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
base.rb:386:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ routing/route_set.rb:438:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
dispatcher.rb:87:in `dispatch' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ dispatcher.rb:121:in`\_call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
dispatcher.rb:130:in `build_middleware_stack' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/ query_cache.rb:29:in`call’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active\_record/  
query\_cache.rb:29:in `call' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/ connection_adapters/abstract/query_cache.rb:34:in`cache’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active\_record/  
query\_cache.rb:9:in `cache' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/ query_cache.rb:28:in`call’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active\_record/  
connection\_adapters/abstract/connection\_pool.rb:361:in `call' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ warden-0.10.7/lib/warden/manager.rb:35:in`call’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/  
warden-0.10.7/lib/warden/manager.rb:34:in `catch' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ warden-0.10.7/lib/warden/manager.rb:34:in`call’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/  
haml-3.0.9/lib/sass/plugin/rack.rb:41:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ string_coercion.rb:25:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb: 24:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
params\_parser.rb:15:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ session/cookie_store.rb:99:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
failsafe.rb:26:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in  
`synchronize' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
dispatcher.rb:114:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ reloader.rb:34:in`run’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
dispatcher.rb:108:in `call' /Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in`each’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call' /Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb: 17:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content\_length.rb:  
13:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:  
67:in `process' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in`process\_client’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in`process\_client’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in`initialize’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in`run’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in  
`initialize' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in`new’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb: 38:in`run’  
/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111  
/Library/Ruby/Site/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in`require’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/script/server:3  
-e:1:in `load’  
-e:1  
Request  
Parameters:  
None

Show session dump  
Response  
Headers:  
{“Content-Type”=\>"",  
“Cache-Control”=\>“no-cache”}

Since there is no file / line number mention this is hopelessly  
frustrating to figure out  
any ideas on this still welcome thanks

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 20, 2010, 12:11am UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/11 "2010-07-20T00:11:15Z")

</div>

NoMethodError in Home#index  
Showing app/views/home/index.html.haml where line # raised:  
undefined method `show’ for #Haml::Precompiler::Line:0x1061c0fc8

Extracted source (around line #):

RAILS\_ROOT: /Users/local/Desktop/myapps/apache2/rubydocs/portal  
Application Trace | Framework Trace | Full Trace  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/  
haml-3.0.9/lib/haml/precompiler.rb:178:in `precompile' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ haml-3.0.9/lib/haml/engine.rb:121:in`initialize’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/  
haml-3.0.9/lib/haml/template/plugin.rb:29:in `new' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ haml-3.0.9/lib/haml/template/plugin.rb:29:in`compile’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/  
template\_handler.rb:11:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/ renderable.rb:19:in`compiled\_source’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/  
renderable.rb:68:in `compile!' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/ renderable.rb:61:in`compile’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/  
renderable.rb:28:in `render_without_active_scaffold' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/ active_scaffold/lib/extensions/action_view_rendering.rb:94:in`render’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/  
template.rb:205:in `render_template' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb: 265:in`render\_without\_active\_scaffold’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/  
active\_scaffold/lib/extensions/action\_view\_rendering.rb:61:in  
`render_without_haml' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ haml-3.0.9/lib/haml/helpers/action_view_mods.rb:13:in`render’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_view/base.rb:  
348:in `_render_with_layout' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_view/base.rb: 262:in`render\_without\_active\_scaffold’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/  
active\_scaffold/lib/extensions/action\_view\_rendering.rb:61:in  
`render_without_haml' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ haml-3.0.9/lib/haml/helpers/action_view_mods.rb:13:in`render’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
base.rb:1250:in `render_for_file' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ base.rb:936:in`render\_without\_benchmark’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
benchmarking.rb:51:in `render_without_active_scaffold' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/  
1.8/benchmark.rb:308:in `realtime' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
benchmarking.rb:51:in `render_without_active_scaffold' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/ active_scaffold/lib/extensions/action_controller_rendering.rb:13:in`render’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
base.rb:1326:in `default_render' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ base.rb:1332:in`perform\_action\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
filters.rb:617:in `call_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ filters.rb:610:in`perform\_action\_without\_benchmark’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/  
1.8/benchmark.rb:308:in `realtime' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/ core_ext/benchmark.rb:17:in`ms’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ rescue.rb:160:in`perform\_action\_without\_flash’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
flash.rb:151:in `perform_action_without_render_component' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/plugins/ render_component/lib/components.rb:39:in`perform\_action’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
base.rb:532:in `send' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ base.rb:532:in`process\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
filters.rb:606:in `process' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ base.rb:391:in`process’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
base.rb:386:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ routing/route_set.rb:438:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
dispatcher.rb:87:in `dispatch' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ dispatcher.rb:121:in`\_call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
dispatcher.rb:130:in `build_middleware_stack' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/ query_cache.rb:29:in`call’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active\_record/  
query\_cache.rb:29:in `call' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/ connection_adapters/abstract/query_cache.rb:34:in`cache’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active\_record/  
query\_cache.rb:9:in `cache' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active_record/ query_cache.rb:28:in`call’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.8/lib/active\_record/  
connection\_adapters/abstract/connection\_pool.rb:361:in `call' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ warden-0.10.7/lib/warden/manager.rb:35:in`call’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/  
warden-0.10.7/lib/warden/manager.rb:34:in `catch' /Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/ warden-0.10.7/lib/warden/manager.rb:34:in`call’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/vendor/gems/  
haml-3.0.9/lib/sass/plugin/rack.rb:41:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ string_coercion.rb:25:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb: 24:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
params\_parser.rb:15:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ session/cookie_store.rb:99:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
failsafe.rb:26:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in  
`synchronize' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
dispatcher.rb:114:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/ reloader.rb:34:in`run’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action\_controller/  
dispatcher.rb:108:in `call' /Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in`each’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call' /Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb: 17:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/content\_length.rb:  
13:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/chunked.rb:15:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:  
67:in `process' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in`process\_client’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in`process\_client’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in`initialize’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in`run’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in  
`initialize' /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in`new’  
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' /Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb: 38:in`run’  
/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111  
/Library/Ruby/Site/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in`require’  
/Users/local/Desktop/myapps/apache2/rubydocs/portal/script/server:3  
-e:1:in `load’  
-e:1  
Request  
Parameters:  
None

Show session dump  
Response  
Headers:  
{“Content-Type”=\>"",  
“Cache-Control”=\>“no-cache”}

is the full error report no line file number to look at and fix ;s so  
its a mystical location somewhere that results in the error

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 20, 2010, 10:00am UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/12 "2010-07-20T10:00:06Z")

</div>

On 19 July 2010 23:08, rubybox [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Extracted source (around line #):

Have you updated any gems or plugins or vendored anything since it was  
working? It looks like the sort of error that might be caused by  
mismatched stuff.

Is anything working at all or is the whole thing broken? What happens  
if you add a new controller and view? Don’t forget to commit  
regularly during this phase so you can work out (eventually) what you  
did to fix it and revert the bits you didn’t need to do. Probably  
good to set up a branch to play about on.

Colin

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 22, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/13 "2010-07-22T19:43:14Z")

</div>

I completly reinstalled my OSX today and yesterday since i had very  
slow performance  
I was hoping it would fix my problem also but still not working ! argh

i removed subdomain fu gem from my app which I added for the rest I  
only added some controllers and views which I have all moved to  
another direcotry outside the app  
Still the problem persist… it seems I have to completly do my app  
over this is worst case scenario, I wonder if any thing like this  
happened to anyone here?

Perhaps some other suggestions ideas?  
Im going to remove more of the app code to see if it starts working  
again in a few mins  
cannot thing of anything else

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 22, 2010, 8:02pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/14 "2010-07-22T20:02:33Z")

</div>

Im going to check my disk with diskwarrior although I removed all  
files from disk and reinstalled and copyed the app files back from  
time machine backup  
my finder hang 2 times on that directory so it might be some strange  
messed up file, I try diskwarrior and report back if this fixed the  
issue, files open fine though  
not sure if this could be sometehing that fixes it

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 22, 2010, 7:59pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/15 "2010-07-22T19:59:37Z")

</div>

It does complain that test\_unit vendor is not installed  
I have no idea what this is or what is needing this why it needs to be  
installed  
I have nothing in my environment.rb stating anything like test\_unit  
the gem is installed but it still ask for it to be installed ( I use  
rubymine that makes me attend on this )  
Also rubymine was totally newly installed like the rest of the OSX,  
ruby on rails and gems

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [August 5, 2010, 12:21pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/16 "2010-08-05T12:21:45Z")

</div>

Eventually this wat fixed  
It was an unpacked gem that I proclaimed correct, I should have  
removed it…  
Fixed a week or 2 ago I thought to just followup in case in future  
someone has this problem remove your  
gems/vendor directory

---

<div class="post-metadata">

**Author:** ![rubybox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Post date:** [July 22, 2010, 9:42pm UTC](https://www.ruby-forum.com/t/strange-error-undefined-method-show-for-see-no-way-to-debug-suggestions/191826/17 "2010-07-22T21:42:07Z")

</div>

On 22 July 2010 18:41, rubybox [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I completly reinstalled my OSX today and yesterday since i had very  
> slow performance  
> I was hoping it would fix my problem also but still not working ! argh
> 
> i removed subdomain fu gem from my app which I added for the rest I  
> only added some controllers and views which I have all moved to  
> another direcotry outside the app  
> Still the problem persist.. it seems I have to completly do my app  
> over this is worst case scenario

You said previously that you commit to git at each deploy, so  
presumably you do not need to completely redo it, just go back to the  
previous version.  
Then you can presumably take large chunks of the code from your latest  
(non-working) version and add them in, updating and running your tests  
at each point.

Colin
