Hi folks, was trying to use DreamHost with their mod_rails and a small
app, and it does not work with HAML as it should. The exception
notifier sent me this e-mail with a trace that maybe can help
understand where the problem is, so I attach it at the bottom.

Basic setup, haml 2.0.3 frozen in vendor/gems, rails 2.1.1,
mod_rails/passenger 2.0.2 afaik it's the one they use on dreamhost.


BUT then I remembered to do a "haml --rails ." so it creates that
vendor/plugin/haml/init.rb file ... and it started to work.

I thought that if I just unpack haml into vendor/gems it will not need
that haml--rails thing ... or is that broken again?


-
evgeny


---------- Forwarded message ----------
From: Exception Notifier <[EMAIL PROTECTED]>
Date: Fri, Sep 12, 2008 at 12:12 AM
Subject: [ERROR] home#index (ActionView::MissingTemplate) "Missing
template home/index.html.erb in view path xxxxxxxxxxxxxx/app/views"

A ActionView::MissingTemplate occurred in home#index:

 Missing template home/index.html.erb in view path xxxxxxxxxxxxxx/app/views
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_view/template.rb:85:in
`raise_missing_template_exception'

-------------------------------
Request:
-------------------------------

 * URL       : http://xxxxxxxxxxxxxxxx
 * IP address: xxxxxxxxxxxxxxx
 * Parameters: {"action"=>"index", "controller"=>"home"}
 * Rails root: /xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

-------------------------------
Session:
-------------------------------

 * session id: "xxx"
 * data: {:csrf_id=>"xxx",
    :return_to=>nil,
    :user_id=>nil,
    "flash"=>{}}

-------------------------------
Environment:
-------------------------------

 * CONTENT_LENGTH      :
 * DOCUMENT_ROOT       : /xxxxxxxx
 * HTTP_ACCEPT         :
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
 * HTTP_ACCEPT_ENCODING: gzip, deflate
 * HTTP_ACCEPT_LANGUAGE: en-us
 * HTTP_CACHE_CONTROL  : max-age=0
 * HTTP_CONNECTION     : keep-alive
 * HTTP_COOKIE         : _xxx_session=xxxxxxx--xxx
 * HTTP_HOST           : xxxxxxxxx
 * HTTP_USER_AGENT     : xxxxxxxxxxx
 * PATH_INFO           : /
 * QUERY_STRING        :
 * REMOTE_ADDR         : xxxxxxx
 * REMOTE_PORT         : 61391
 * REQUEST_METHOD      : GET
 * REQUEST_URI         : /
 * SCRIPT_URI          : http://xxxxxxxxxxx/
 * SCRIPT_URL          : /
 * SERVER_ADDR         : xxxxxxxxxxxxx
 * SERVER_ADMIN        : xxxxxxxxxxxx
 * SERVER_NAME         : xxxxxxxxxx
 * SERVER_PORT         : 80
 * SERVER_PROTOCOL     : HTTP/1.1
 * SERVER_SOFTWARE     : Apache/2.0.61 (Unix) PHP/4.4.7 mod_ssl/2.0.61
OpenSSL/0.9.7e mod_fastcgi/2.4.2 Phusion_Passenger/2.0.3 DAV/2
SVN/1.4.2
 * UNIQUE_ID           : xxxxxxxxxxxxxxx
 * _                   : _

 * Process: 3683
 * Server : xxxxxxxxxx

-------------------------------
Backtrace:
-------------------------------

 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_view/template.rb:85:in
`raise_missing_template_exception'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_view/template.rb:78:in
`set_extension_and_file_name'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_view/template.rb:15:in
`initialize'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_view/base.rb:248:in `new'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_view/base.rb:248:in
`render_file'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1112:in
`render_for_file'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:845:in
`render_with_no_layout'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/layout.rb:251:in
`render_without_benchmark'
 
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
`render'
 
[RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in
`realtime'
 
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
`render'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1161:in
`default_render'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:1167:in
`perform_action_without_filters'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:579:in
`call_filters'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:600:in
`run_before_filters'
 [RAILS_ROOT]/app/controllers/application.rb:28:in `set_language'
 [RAILS_ROOT]/vendor/plugins/gibberish/lib/gibberish/localize.rb:34:in
`use_language'
 [RAILS_ROOT]/app/controllers/application.rb:28:in `set_language'
 [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in
`send'
 [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in
`evaluate_method'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:156:in
`call'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:597:in
`run_before_filters'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:577:in
`call_filters'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:572:in
`perform_action_without_benchmark'
 
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
 /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
 
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in
`perform_action_without_caching'
 
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in
`passenger_orig_perform_action'
 
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
`cache'
 [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
`cache'
 
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in
`passenger_orig_perform_action'
 /dh/passenger/lib/passenger/railz/request_handler.rb:53:in `perform_action'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:529:in
`send'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:529:in
`process_without_filters'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb:568:in
`process_without_session_management_support'
 
[RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in
`process'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb:389:in
`process'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in
`handle_request'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in
`dispatch'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in
`synchronize'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in
`dispatch'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in
`dispatch_cgi'
 [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in
`dispatch'
 /dh/passenger/lib/passenger/railz/request_handler.rb:38:in `process_request'
 /dh/passenger/lib/passenger/abstract_request_handler.rb:163:in `main_loop'
 /dh/passenger/lib/passenger/railz/application_spawner.rb:307:in
`start_request_handler'
 /dh/passenger/lib/passenger/railz/application_spawner.rb:276:in
`handle_spawn_application'
 /dh/passenger/lib/passenger/utils.rb:165:in `safe_fork'
 /dh/passenger/lib/passenger/utils.rb:163:in `fork'
 /dh/passenger/lib/passenger/utils.rb:163:in `safe_fork'
 /dh/passenger/lib/passenger/railz/application_spawner.rb:274:in
`handle_spawn_application'
 /dh/passenger/lib/passenger/utils.rb:165:in `safe_fork'
 /dh/passenger/lib/passenger/utils.rb:163:in `fork'
 /dh/passenger/lib/passenger/utils.rb:163:in `safe_fork'
 /dh/passenger/lib/passenger/railz/application_spawner.rb:273:in
`handle_spawn_application'
 /dh/passenger/lib/passenger/abstract_server.rb:317:in `__send__'
 /dh/passenger/lib/passenger/abstract_server.rb:317:in `main_loop'
 /dh/passenger/lib/passenger/abstract_server.rb:168:in `start_synchronously'
 /dh/passenger/lib/passenger/abstract_server.rb:135:in `start'
 /dh/passenger/lib/passenger/abstract_server.rb:112:in `fork'
 /dh/passenger/lib/passenger/abstract_server.rb:112:in `start'
 /dh/passenger/lib/passenger/railz/application_spawner.rb:177:in `start'
 /dh/passenger/lib/passenger/spawn_manager.rb:218:in `spawn_rails_application'
 /dh/passenger/lib/passenger/spawn_manager.rb:213:in `synchronize'
 /dh/passenger/lib/passenger/spawn_manager.rb:213:in `spawn_rails_application'
 /dh/passenger/lib/passenger/spawn_manager.rb:122:in `spawn_application'
 /dh/passenger/lib/passenger/spawn_manager.rb:247:in `handle_spawn_application'
 /dh/passenger/lib/passenger/abstract_server.rb:317:in `__send__'
 /dh/passenger/lib/passenger/abstract_server.rb:317:in `main_loop'
 /dh/passenger/lib/passenger/abstract_server.rb:168:in `start_synchronously'
 /dh/passenger/bin/passenger-spawn-server:46

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to