You have a Ruby syntax error in your template; probably an unclosed if statement or something like that. We may be able to tell you where it is if you post the full template.
On Sat, May 7, 2011 at 8:19 AM, nick <nick.mcfarl...@gmail.com> wrote: > The full error message is below. It is strange because it has been > running fine up till now. I see what you mean about a rails error - it > is ActionView that is not happy. Is this unrelated to haml? > > =============================================================================== > > A ActionView::TemplateError occurred in projects#show: > > compile error > /home/staging/www/releases/20110501204820/app/views/projects/show.haml: > 162: syntax error, unexpected kELSE, expecting kEND > /home/staging/www/releases/20110501204820/app/views/projects/show.haml: > 245: syntax error, unexpected kENSURE, expecting kEND } > \n";_erbout;ensure;@haml_buffer = @haml_buffer.upper;end; > ^ > /home/staging/www/releases/20110501204820/app/views/projects/show.haml: > 248: syntax error, unexpected $end, expecting kEND > On line #162 of app/views/projects/show.haml > > 159: = "imported (ref:#{mi.myob_id})" > 160: - else > 161: %p (No milestone invoices to display) > 162: = link_to 'Add milestone invoice', :controller => > 'invoices', :action => 'new_sales', :id => @project > 163: > 164: %h2 Subcontractor milestone invoices > 165: - if @project.invoices.subco_milestone.size > 0 > > app/views/projects/show.haml:248:in `compile!' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_view/renderable.rb:66:in `compile' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_view/renderable.rb:64:in `synchronize' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_view/renderable.rb:64:in `compile' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_view/renderable.rb:26:in `render' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_view/template.rb:73:in `render_template' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_view/base.rb:256:in `render_without_haml' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/haml-3.1.1/lib/haml/ > helpers/action_view_mods.rb:13:in `render' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_view/base.rb:367:in `_render_with_layout' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_view/base.rb:254:in `render_without_haml' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/haml-3.1.1/lib/haml/ > helpers/action_view_mods.rb:13:in `render' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/base.rb:1174:in `render_for_file' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/base.rb:896:in `render_without_benchmark' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/ > lib/active_support/core_ext/benchmark.rb:8:in `realtime' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/base.rb:868:in `render_without_benchmark' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/ > lib/active_support/core_ext/benchmark.rb:8:in `realtime' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/base.rb:1248:in `default_render' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/base.rb:1254:in `perform_action_without_filters' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/filters.rb:617:in `call_filters' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/filters.rb:610:in `perform_action_without_benchmark' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /home/staging/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/ > benchmark.rb:293:in `measure' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/rescue.rb:136:in `perform_action_without_caching' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/caching/sql_cache.rb:13:in > `passenger_orig_perform_action' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.2.2/ > lib/active_record/connection_adapters/abstract/query_cache.rb:34:in > `cache' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.2.2/ > lib/active_record/query_cache.rb:8:in `cache' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/caching/sql_cache.rb:12:in > `passenger_orig_perform_action' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/classic_rails/request_handler.rb:66:in > `perform_action' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/base.rb:524:in `send' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/base.rb:524:in `process_without_filters' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/filters.rb:606:in > `process_without_session_management_support' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/session_management.rb:134:in `process' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/base.rb:392:in `process' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:183:in `handle_request' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:110:in `dispatch_unlocked' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:123:in `dispatch' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:122:in `synchronize' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:122:in `dispatch' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:132:in `dispatch_cgi' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/actionpack-2.2.2/lib/ > action_controller/dispatcher.rb:39:in `dispatch' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/classic_rails/request_handler.rb:51:in > `process_request' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_request_handler.rb:513:in > `accept_and_process_next_request' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_request_handler.rb:274:in `main_loop' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/classic_rails/application_spawner.rb:321:in > `start_request_handler' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/classic_rails/application_spawner.rb:275:in `send' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/classic_rails/application_spawner.rb:275:in > `handle_spawn_application' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/utils.rb:479:in `safe_fork' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/classic_rails/application_spawner.rb:270:in > `handle_spawn_application' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server.rb:357:in `__send__' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server.rb:357:in `server_main_loop' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server.rb:206:in `start_synchronously' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server.rb:180:in `start' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/classic_rails/application_spawner.rb:149:in `start' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server_collection.rb:82:in `synchronize' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server_collection.rb:79:in `synchronize' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/spawn_manager.rb:132:in `spawn_application' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server.rb:357:in `__send__' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server.rb:357:in `server_main_loop' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/lib/ > phusion_passenger/abstract_server.rb:206:in `start_synchronously' > /home/staging/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/ > helper-scripts/passenger-spawn-server:99 > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to haml@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.