haml / haml-rails

let your Gemfile do the talking
MIT License
1.04k stars 169 forks source link

Rails shows "500 page" but not "debug page" with syntax error(with non-ASCII characters) #16

Closed yhslai closed 13 years ago

yhslai commented 13 years ago

I have a HAML file which contains some non-ASCII characters, like below:

    -# coding: utf-8

    = select "set", "name", ["社團朋友",1], ["國文作業",2], ["Create New Set",0]]-

When I tried to access this page, Rails gave me a "500 Internal Server Error" page:

500 Internal Server Error
If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong.

No extracted source, no stack trace. Just a static page. I think that Rails should return the debug page anyhow in development mode, so isn't it a bug?

My development.log:

Started GET "/main" for 127.0.0.1 at 2011-10-27 00:53:14 +0800
  Processing by MainController#index as HTML
  User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."facebook_uid" = 100000353465634 LIMIT 1
  Schedule Load (0.3ms)  SELECT "schedules".* FROM "schedules" WHERE "schedules"."user_id" IN (1)
  Day Load (0.3ms)  SELECT "days".* FROM "days" WHERE "days"."schedule_id" IN (1)
  Lesson Load (0.6ms)  SELECT "lessons".* FROM "lessons" WHERE "lessons"."day_id" IN (1, 2, 3, 4, 5, 6)
Rendered schedules/_show_friends.html.haml (2.5ms)
  User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
ERROR: compiling _app_views_shared__user_info_html_haml___252064692817660966_51225460 RAISED /home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:8: syntax error, unexpected ']', expecting ')'
...ä½æ¥­",2], ["Create New Set",0]]-#, {:include_blank => false,...
...                                 ^
/home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:9: syntax error, unexpected tCONSTANT, expecting ')'
...n", 0, false); #s= link_to "Add", "#", :class => "btn succes...
...                               ^
/home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:10: syntax error, unexpected keyword_ensure, expecting ')'
...:Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer....
...                               ^
/home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:10: syntax error, unexpected keyword_end, expecting ')'
...buffer = @haml_buffer.upper;end;
...                               ^
/home/raincole/rails_projects/ntu_scheduler/app/views/shared/_user_info.html.haml:13: syntax error, unexpected keyword_end, expecting ')'
Function body:           def _app_views_shared__user_info_html_haml___252064692817660966_51225460(local_assigns, output_buffer)
            _old_virtual_path, @virtual_path = @virtual_path, "shared/_user_info";_old_output_buffer = @output_buffer;user = local_assigns[:user];user_info = local_assigns[:user_info];;begin;extend Haml::Helpers;_hamlout = @haml_buffer = Haml::Buffer.new(@haml_buffer, {:autoclose=>["meta", "img", "link", "br", "hr", "input", "area", "param", "col", "base"], :preserve=>["textarea", "pre", "code"], :attr_wrapper=>"'", :ugly=>false, :format=>:html5, :encoding=>"UTF-8", :escape_html=>true, :escape_attrs=>true});_erbout = _hamlout.buffer;__in_erb_template = true;;_hamlout.push_text("<div class='user_info span16'>\n  <h2>#{_hamlout.adjust_tabs(2); 

_hamlout.format_script_false_true_false_false_false_true_false(("#{Haml::Helpers.html_escape((user.name))}'s Schedule"
));}</h2>\n  <div class='fun'>\n    #{_hamlout.adjust_tabs(1); 
_hamlout.format_script_false_false_false_true_false_true_false(( select "set", "name", ["社åæå",1], ["åæä½æ¥­",2], ["Create New Set",0]]-#, {:include_blank => false, :prompt => 'Select a schedule set to add'}, {:id => 'add_to_set_select'}
));}\n", 0, false); #s= link_to "Add", "#", :class => "btn success small"
_hamlout.push_text("  </div>\n</div>\n", -2, false);::Haml::Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer.upper;end;
          ensure
            @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
          end
Backtrace: /home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:282:in `module_eval'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:282:in `compile'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:190:in `compile!'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:143:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:55:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:142:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:256:in `render_partial'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:228:in `block (2 levels) in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:227:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:219:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:41:in `render_partial'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:15:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/helpers/rendering_helper.rb:24:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers.rb:90:in `non_haml'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
/home/raincole/rails_projects/ntu_scheduler/app/views/schedules/_show.html.haml:6:in `_app_views_schedules__show_html_haml___1620517414953507623_51153340'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:144:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:55:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:142:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:256:in `render_partial'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:228:in `block (2 levels) in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:227:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/partial_renderer.rb:219:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:41:in `render_partial'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:15:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/helpers/rendering_helper.rb:24:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers.rb:90:in `non_haml'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/haml-3.1.3/lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
/home/raincole/rails_projects/ntu_scheduler/app/views/main/index.html.haml:16:in `_app_views_main_index_html_haml___2116693120409007081_51563880'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:144:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:55:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/template.rb:142:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:39:in `block in render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:38:in `render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:12:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb:9:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:36:in `render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb:17:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:120:in `_render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/streaming.rb:250:in `_render_template'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:114:in `render_to_body'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/renderers.rb:30:in `render_to_body'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/compatibility.rb:43:in `render_to_body'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:99:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/rendering.rb:16:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/raincole/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activerecord-3.1.0/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/base.rb:167:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:425:in `_run__644114700063714152__process_action__3372272976403756574__callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/rescue.rb:17:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `block in instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53:in `instrument'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activerecord-3.1.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/base.rb:121:in `process'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:45:in `process'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal.rb:193:in `dispatch'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_controller/metal.rb:236:in `block in action'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:65:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:29:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `block in call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `block in recognize'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:82:in `optimized_each'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:531:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/etag.rb:23:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/conditionalget.rb:25:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/flash.rb:243:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/session/abstract/id.rb:195:in `context'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/session/abstract/id.rb:190:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/cookies.rb:326:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activerecord-3.1.0/lib/active_record/query_cache.rb:62:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/reloader.rb:68:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/sendfile.rb:101:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/railties-3.1.0/lib/rails/rack/logger.rb:13:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/methodoverride.rb:24:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/runtime.rb:17:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/activesupport-3.1.0/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/lock.rb:15:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/actionpack-3.1.0/lib/action_dispatch/middleware/static.rb:53:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/railties-3.1.0/lib/rails/engine.rb:455:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/railties-3.1.0/lib/rails/rack/content_length.rb:16:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/railties-3.1.0/lib/rails/rack/log_tailer.rb:14:in `call'
/home/raincole/.rvm/gems/ruby-1.9.2-p290@ntu_scheduler/gems/rack-1.3.3/lib/rack/handler/webrick.rb:59:in `service'
/home/raincole/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/home/raincole/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/home/raincole/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
Rendered shared/_user_info.html.haml (3.8ms)
Rendered schedules/_show.html.haml (8.1ms)
Rendered main/index.html.haml within layouts/application (12.9ms)
Completed 500 Internal Server Error in 1124ms

I'm using haml-rails 0.3.4, rails 3.1.0.

indirect commented 13 years ago

I'm sorry, I have no idea how this relates to the haml-rails plugin. It might be a bug in rails or in haml, but it's definitely not in the scaffold templates provided by this plugin.

yhslai commented 13 years ago

You're right. I had haml confused with haml-rails, sorry.