NoMethodError in
Companies#edit
Showing app/views/companies/edit.html.erb where line #17 raised:
undefined method `name' for #<Company:0x2651628>
Extracted source (around line #17):
14: <ol>
15: <li>
16: <%= f.label :name, t(:name) %>
17: <%= f.text_field :name %>
18: <%= f.error_message_on :name %>
19: </li>
20:
RAILS_ROOT: /Users/caue/Documents/workspace/onde-trabalhar-com
Application Trace |
Framework Trace |
Full Trace
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/attribute_methods.rb:260:in `method_missing'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:834:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:834:in `value_before_type_cast'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:822:in `value_before_type_cast'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:739:in `to_input_field_tag'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:531:in `text_field'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:930:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:930:in `text_field'
/Users/caue/Documents/workspace/onde-trabalhar-com/app/views/companies/edit.html.erb:17:in `_run_erb_app47views47companies47edit46html46erb'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:490:in `fields_for'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:282:in `form_for'
/Users/caue/Documents/workspace/onde-trabalhar-com/app/views/companies/edit.html.erb:12:in `_run_erb_app47views47companies47edit46html46erb'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable.rb:34:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable.rb:34:in `render_without_template_tracking'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/base.rb:301:in `with_template'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable.rb:30:in `render_without_template_tracking'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/test_case.rb:20:in `render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/template.rb:194:in `render_template'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/base.rb:260:in `render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/base.rb:343:in `_render_with_layout'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/base.rb:257:in `render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1241:in `render_for_file'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:937:in `render_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:51:in `render'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in `realtime'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:51:in `render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1317:in `default_render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1323:in `perform_action_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in `call_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in `realtime'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in `perform_action'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `process_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in `_call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in `initialize'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:106:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/attribute_methods.rb:260:in `method_missing'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:834:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:834:in `value_before_type_cast'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:822:in `value_before_type_cast'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:739:in `to_input_field_tag'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:531:in `text_field'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:930:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:930:in `text_field'
/Users/caue/Documents/workspace/onde-trabalhar-com/app/views/companies/edit.html.erb:17:in `_run_erb_app47views47companies47edit46html46erb'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:490:in `fields_for'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/form_helper.rb:282:in `form_for'
/Users/caue/Documents/workspace/onde-trabalhar-com/app/views/companies/edit.html.erb:12:in `_run_erb_app47views47companies47edit46html46erb'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable.rb:34:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable.rb:34:in `render_without_template_tracking'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/base.rb:301:in `with_template'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/renderable.rb:30:in `render_without_template_tracking'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/test_case.rb:20:in `render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/template.rb:194:in `render_template'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/base.rb:260:in `render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/base.rb:343:in `_render_with_layout'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/base.rb:257:in `render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1241:in `render_for_file'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:937:in `render_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:51:in `render'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in `realtime'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:51:in `render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1317:in `default_render'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:1323:in `perform_action_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:617:in `call_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in `realtime'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in `perform_action'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `process_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:88:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:111:in `_call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:82:in `initialize'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:29:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:9:in `cache'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_cache.rb:28:in `call'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/params_parser.rb:15:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rewindable_input.rb:25:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:93:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/failsafe.rb:11:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:106:in `call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/lint.rb:47:in `_call'
/Library/Ruby/Gems/1.8/gems/rack-1.0.0/lib/rack/lint.rb:35:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/integration.rb:320:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/integration.rb:196:in `get'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/integration.rb:498:in `__send__'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/integration.rb:498:in `get'
/Library/Ruby/Gems/1.8/gems/webrat-0.4.4/lib/webrat/rails.rb:70:in `send'
/Library/Ruby/Gems/1.8/gems/webrat-0.4.4/lib/webrat/rails.rb:70:in `do_request'
/Library/Ruby/Gems/1.8/gems/webrat-0.4.4/lib/webrat/rails.rb:35:in `get'
/Library/Ruby/Gems/1.8/gems/webrat-0.4.4/lib/webrat/core/session.rb:106:in `send'
/Library/Ruby/Gems/1.8/gems/webrat-0.4.4/lib/webrat/core/session.rb:106:in `request_page'
/Library/Ruby/Gems/1.8/gems/webrat-0.4.4/lib/webrat/core/elements/link.rb:19:in `click'
/Library/Ruby/Gems/1.8/gems/webrat-0.4.4/lib/webrat/core/scope.rb:260:in `click_link'
(__FORWARDABLE__):3:in `__send__'
(__FORWARDABLE__):3:in `click_link'
(eval):2:in `click_link'
features/step_definitions/webrat_steps.rb:19:in `__instance_exec0'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/core_ext/instance_exec.rb:60:in `send'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/core_ext/instance_exec.rb:60:in `instance_exec'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/core_ext/instance_exec.rb:20:in `cucumber_instance_exec'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/core_ext/instance_exec.rb:38:in `cucumber_run_with_backtrace_filtering'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/core_ext/instance_exec.rb:10:in `cucumber_instance_exec'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/step_definition.rb:105:in `invoke'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/step_match.rb:13:in `invoke'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/step_invocation.rb:32:in `invoke'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/step_invocation.rb:22:in `accept'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/visitor.rb:74:in `visit_step'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/formatter/pretty.rb:124:in `visit_step'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/step_collection.rb:14:in `accept'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/step_collection.rb:13:in `each'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/step_collection.rb:13:in `accept'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/visitor.rb:70:in `visit_steps'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/scenario.rb:29:in `accept'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/step_mother.rb:236:in `before_and_after'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/scenario.rb:28:in `accept'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/visitor.rb:45:in `visit_feature_element'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/formatter/pretty.rb:79:in `visit_feature_element'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/feature.rb:23:in `accept'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/feature.rb:22:in `each'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/feature.rb:22:in `accept'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/visitor.rb:23:in `visit_feature'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/formatter/pretty.rb:41:in `visit_feature'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/features.rb:21:in `accept'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/features.rb:20:in `each'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/features.rb:20:in `accept'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/ast/visitor.rb:19:in `visit_features'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/formatter/pretty.rb:26:in `visit_features'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/broadcaster.rb:9:in `__send__'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/broadcaster.rb:9:in `method_missing'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/broadcaster.rb:8:in `map'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/broadcaster.rb:8:in `method_missing'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/cli/main.rb:41:in `execute!'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/lib/cucumber/cli/main.rb:20:in `execute'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.5/bin/cucumber:8
/usr/bin/cucumber:19:in `load'
/usr/bin/cucumber:19
Request
Parameters:
{"id"=>"27"}
Show session dump
Response
Headers:
{"Content-Type"=>"text/html",
"Cache-Control"=>"no-cache"}