Error creating Blog-User

Bug #112156 reported by D. Deutsch on 2007-05-03
2
Affects Status Importance Assigned to Milestone
AGF-XMBCS
Low
Michael Otteneder

Bug Description

On klicking "Blog -> Register", the following Error appears:

 NoMethodError in Users#new

Showing app/views/users/new.rhtml where line #13 raised:

undefined method `mail' for #<User:0xb693c658>

Extracted source (around line #13):

10: <%= password_field 'user', 'password' %></p>
11:
12: <p><label for="user_mail"><%= $user_email %></label><br/>
13: <%= text_field 'user', 'mail' %></p>
14:
15: <p><label for="user_rname"><%= $name %></label><br/>
16: <%= text_field 'user', 'rname' %></p>

RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace

/var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1792:in `method_missing'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/form_helper.rb:341:in `send'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/form_helper.rb:341:in `value_before_type_cast'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/form_helper.rb:253:in `to_input_field_tag'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/form_helper.rb:160:in `text_field'
#{RAILS_ROOT}/app/views/users/new.rhtml:13:in `_run_rhtml_users_new'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:316:in `send'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:316:in `compile_and_render_template'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:292:in `render_template'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:251:in `render_file'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:726:in `render_file'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:648:in `render_with_no_layout'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/layout.rb:245:in `render_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in `render'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in `render'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:942:in `perform_action_without_filters'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `send'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30

vendor/plugins/authorization/lib/publishare/identity.rb:48:in `method_missing'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
script/server:3

/var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1792:in `method_missing'
vendor/plugins/authorization/lib/publishare/identity.rb:48:in `method_missing'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/form_helper.rb:341:in `send'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/form_helper.rb:341:in `value_before_type_cast'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/form_helper.rb:253:in `to_input_field_tag'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/form_helper.rb:160:in `text_field'
#{RAILS_ROOT}/app/views/users/new.rhtml:13:in `_run_rhtml_users_new'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:316:in `send'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:316:in `compile_and_render_template'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:292:in `render_template'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:251:in `render_file'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:726:in `render_file'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:648:in `render_with_no_layout'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/layout.rb:245:in `render_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in `render'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:53:in `render'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:942:in `perform_action_without_filters'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/rescue.rb:82:in `perform_action'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `send'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in `process_without_filters'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in `process_without_session_management_support'
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session_management.rb:117:in `process'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in `dispatch'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:115:in `handle_dispatch'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:81:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/webrick_server.rb:67:in `dispatch'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:59
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
/var/lib/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:30
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
script/server:3

Request

Parameters: None

Show session dump

---
flash: !map:ActionController::Flash::FlashHash {}

Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}

Chris Ortner (c-ortner) on 2007-05-03
Changed in agfxmbcs:
status: Unconfirmed → Rejected
Changed in agfxmbcs:
assignee: nobody → m-otteneder
importance: Undecided → Low
status: Rejected → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers