Open GoogleCodeExporter opened 9 years ago
What steps will reproduce the problem? 1. Added user, then tried to add Administor or Editor What is the expected output? What do you see instead? Error 500 - Something went totally wrong What version of the product are you using? On what operating system? Linux RHEL5 Please provide any additional information below. ===== BibApp needs you! ==== * Exception #<ActionView::TemplateError: ActionView::TemplateError (can't dump anonymous class Class) on line #21 of app/views/roles/_form.html.haml: 18: - if user.has_role? @role_name.downcase, @authorizable 19: %strong 20: ="Already has #{@role_name} permissions" 21: - role_id = Role.find_by_authorizable_id(@authorizable) 22: =link_to " [remove]", {:controller => "roles", :action => "destroy", :role_id => role_id, :user_id => user.id}, :method=>:delete 23: - else 24: =link_to "Add as #{@role_name}", {:controller => "roles", :action => "create", :name => @role_name, :user_id => user.id}, :method=>:post /home/bibapp-user/ruby/lib/ruby/1.8/yaml/rubytypes.rb:6:in `to_yaml' /home/bibapp-user/ruby/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.11/lib/will_paginate/finder.rb:170:in `method_missing' app/views/roles/_form.html.haml:21:in `_run_haml_app47views47roles47_form46html46haml_locals_form_object' app/views/roles/_form.html.haml:15:in `each' app/views/roles/_form.html.haml:15:in `_run_haml_app47views47roles47_form46html46haml_locals_form_object' haml (3.0.25) rails/./lib/haml/helpers/action_view_mods.rb:11:in `render' haml (3.0.25) lib/haml/helpers.rb:90:in `non_haml' haml (3.0.25) rails/./lib/haml/helpers/action_view_mods.rb:11:in `render' app/views/roles/new_admin.html.haml:7:in `_run_haml_app47views47roles47new_admin46html46haml' haml (3.0.25) rails/./lib/haml/helpers/action_view_mods.rb:13:in `render' haml (3.0.25) rails/./lib/haml/helpers/action_view_mods.rb:13:in `render' haml (3.0.25) rails/./lib/sass/plugin/rack.rb:41:in `call' haml (3.0.25) rails/./lib/sass/plugin/rack.rb:41:in `call' passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request' passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `__send__' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in `start' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `__send__' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.7) helper-scripts/passenger-spawn-server:99 > * Clean Backtrace On line #21 of app/views/roles/_form.html.haml 18: - if user.has_role? @role_name.downcase, @authorizable 19: %strong 20: ="Already has #{@role_name} permissions" 21: - role_id = Role.find_by_authorizable_id(@authorizable) 22: =link_to " [remove]", {:controller => "roles", :action => "destroy", :role_id => role_id, :user_id => user.id}, :method=>:delete 23: - else 24: =link_to "Add as #{@role_name}", {:controller => "roles", :action => "create", :name => @role_name, :user_id => user.id}, :method=>:post /home/bibapp-user/ruby/lib/ruby/1.8/yaml/rubytypes.rb:6:in `to_yaml' /home/bibapp-user/ruby/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.11/lib/will_paginate/finder.rb:170:in `method_missing' app/views/roles/_form.html.haml:21:in `_run_haml_app47views47roles47_form46html46haml_locals_form_object' app/views/roles/_form.html.haml:15:in `each' app/views/roles/_form.html.haml:15:in `_run_haml_app47views47roles47_form46html46haml_locals_form_object' haml (3.0.25) rails//lib/haml/helpers/action_view_mods.rb:11:in `render' haml (3.0.25) lib/haml/helpers.rb:90:in `non_haml' haml (3.0.25) rails/./lib/haml/helpers/action_view_mods.rb:11:in `render' app/views/roles/new_admin.html.haml:7:in `_run_haml_app47views47roles47new_admin46html46haml' haml (3.0.25) rails/./lib/haml/helpers/action_view_mods.rb:13:in `render' haml (3.0.25) rails/./lib/haml/helpers/action_view_mods.rb:13:in `render' haml (3.0.25) rails/./lib/sass/plugin/rack.rb:41:in `call' haml (3.0.25) rails/./lib/sass/plugin/rack.rb:41:in `call' passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request' passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `__send__' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in `start' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `__send__' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.7) helper-scripts/passenger-spawn-server:99 * Params {:user_id=>1, :saved=>#<Saved >, "flash"=>{}, :_csrf_token=>"9+Wf7bKcHaPyfrEdFtVKeZOpM1letFNC/Hj6Y7OYXjE="} * Session {"name"=>"Admin", "action"=>"new_admin", "controller"=>"roles"} * Request Env nil - - - - Keeping it forever real, -The BibApp
Original issue reported on code.google.com by joeyw1...@hotmail.com on 14 Jun 2011 at 9:59
joeyw1...@hotmail.com
Original issue reported on code.google.com by
joeyw1...@hotmail.com
on 14 Jun 2011 at 9:59