Error Showing a User

Bug #112160 reported by D. Deutsch on 2007-05-03
2
Affects Status Importance Assigned to Milestone
AGF-XMBCS
High
Chris Ortner

Bug Description

Following Error appears, showing a User (mrc_001):

 NoMethodError in Users#show

Showing app/views/users/show.rhtml where line #21 raised:

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

Extracted source (around line #21):

18: <div class="contact">
19: <h2><%= $h_communicationuser %></h2>
20: <p>
21: <%= $user_email %>: <%= mail_to @user.mail, @user.mail %><br />
22: <%= $user_irc %>: <normal><% if @user.jid %><% else %>-<% end %></normal><br />
23: <%= $user_jabberid %>: <normal><% if @user.jid %><%= @user.irc %><% else %>-<% end %></normal><br />
24: <%= $user_icq %>: <normal><% if @user.uin %><%= @user.uin %><% else %>-<% end %></normal><br />

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'
#{RAILS_ROOT}/app/views/users/show.rhtml:21:in `_run_rhtml_users_show'
/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'
#{RAILS_ROOT}/app/views/users/show.rhtml:21:in `_run_rhtml_users_show'
/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: {"id"=>"2"}

Show session dump

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

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

Chris Ortner (c-ortner) wrote :

Solved.

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

Other bug subscribers