rendered paste bodyProcessing AdminCompanyController#update (for 127.0.0.1 at 2007-06-19 12:02:58) [POST] Session ID: feb847fd5714e9f86b1c9fbc257fe2a0 Parameters: {"company"=>{"cif"=>"cif0000001", "image_url"=>"default.jpg", "cui"=>"cui0000001", "company_name"=>"Societatea Comerciala 1", "no_reg_com"=>"nrc0000001", "discount_show"=>"false", "bank_id"=>"1", "bank_branch_id"=>"1", "bank_account"=>"cont bancar 000001"}, "commit"=>" » Actualizare", "action"=>"update", "id"=>"1", "controller"=>"admin_company"} DbAdministrator Columns (0.006561) SHOW FIELDS FROM db_administrators DbAdministrator Load (0.006423) SELECT * FROM db_administrators WHERE (db_administrators.`id` = 6) LIMIT 1 Company Columns (0.007150) SHOW FIELDS FROM companies Company Load (0.006331) SELECT * FROM companies WHERE (companies.id = 1) SQL (0.000699) BEGIN Company Load (0.003279) SELECT * FROM companies WHERE (companies.no_reg_com = 'nrc0000001' AND companies.id <> 1) LIMIT 1 Company Load (0.003316) SELECT * FROM companies WHERE (companies.bank_account = 'cont bancar 000001' AND companies.id <> 1) LIMIT 1 Company Load (0.069993) SELECT * FROM companies WHERE (companies.cui = 'cui0000001' AND companies.id <> 1) LIMIT 1 Company Load (0.003450) SELECT * FROM companies WHERE (companies.cif = 'cif0000001' AND companies.id <> 1) LIMIT 1 SQL (0.000783) COMMITRendering layoutfalseactionedit within layouts/adminRendering admin_company/editActionView::TemplateError (You have a nil object when you didn't expect it!You might have expected an instance of Array.The error occurred while evaluating nil.inject) on line #27 of app/views/admin_company/_form.rhtml:24: <td>25: <span id = "select_bank">26: <%=27: collection_select(:company, :bank_id, @banks, :id, :bank_name,{},28: {29: :onChange => "new Ajax.Updater('select_bank_branch', '/admin_company/bank_changed/' + this[this.selectedIndex].value,{asynchonous:true, evalScripts:true});"30: }) /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/helpers/form_options_helper.rb:142:in `options_from_collection_for_select' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/helpers/form_options_helper.rb:310:in `to_collection_select_tag' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/helpers/form_options_helper.rb:71:in `collection_select' #{RAILS_ROOT}/app/views/admin_company/_form.rhtml:27:in `_run_rhtml_47app47views47admin_company47_form46rhtml' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:326:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:326:in `compile_and_render_template' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:301:in `render_template' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:260:in `render_file' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:275:in `render' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/partials.rb:59:in `render_partial' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:26:in `benchmark' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/1.8/benchmark.rb:307:in `realtime' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:26:in `benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/partials.rb:58:in `render_partial' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:287:in `render' #{RAILS_ROOT}/app/views/admin_company/edit.rhtml:13:in `_run_rhtml_47app47views47admin_company47edit46rhtml' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/helpers/capture_helper.rb:108:in `call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/helpers/capture_helper.rb:108:in `capture_erb_with_buffer' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/helpers/capture_helper.rb:67:in `capture' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/helpers/form_tag_helper.rb:51:in `form_tag' #{RAILS_ROOT}/app/views/admin_company/edit.rhtml:12:in `_run_rhtml_47app47views47admin_company47edit46rhtml' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:326:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:326:in `compile_and_render_template' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:301:in `render_template' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/base.rb:260:in `render_file' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:806:in `render_file' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:738:in `render_with_no_layout' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:863:in `render_without_layout' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:798:in `render_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:748:in `render_with_no_layout' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/deprecation.rb:43:in `silence' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:747:in `render_with_no_layout' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/layout.rb:244:in `render_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:50:in `render' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:50:in `render' app/controllers/admin_company_controller.rb:55:in `update' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:1095:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:632:in `call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:638:in `call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:438:in `call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:637:in `call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:638:in `call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:438:in `call' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:637:in `call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/rescue.rb:83:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:430:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:430:in `process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/filters.rb:624:in `process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/session_management.rb:114:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:330:in `process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/dispatcher.rb:41:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:113:in `handle_dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:79:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/webrick_server.rb:63:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:495:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:342:in `new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:495:in `require' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/server.rb:39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)