NoMethodError in
Student#solicitud_beca
Showing app/views/layouts/application.html.erb where line #55 raised:
undefined method `gsub' for nil:NilClass
Extracted source (around line #55):
52: <div id="outer-header-link">
53: <div id="header_link" >
54: <% @an = session[:anyo] %>
55: Año Académico: <%= link_to @an.gsub(/.{4}(?=.)/, '\0/'),{:controller=>"user", :action=>"cambio_ano"}%> |
56: Registrado como:
57: <%= link_to @user.first_name, :controller => 'user', :action => 'profile',
58: :id => @user.username %> |
RAILS_ROOT: /home/institut/ruby/gestor
Application Trace |
Framework Trace |
Full Trace
/home/institut/ruby/gestor/app/views/layouts/application.html.erb:55:in `_run_erb_app47views47layouts47application46html46erb'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `block in render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:307:in `with_template'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/template.rb:206:in `render_template'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:266:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:353:in `_render_with_layout'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:263:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1253:in `render_for_file'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:937:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:52:in `block in render_with_benchmark'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `block in ms'
/opt/ruby-lur/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `ms'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:52:in `render_with_benchmark'
/home/institut/ruby/gestor/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:20:in `render_with_wicked_pdf'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1329:in `default_render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1335:in `perform_action'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:618:in `call_filters'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:611:in `perform_action_with_filters'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:69:in `block in perform_action_with_benchmark'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `block in ms'
/opt/ruby-lur/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `ms'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:69:in `perform_action_with_benchmark'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/rescue.rb:161:in `perform_action_with_rescue'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/flash.rb:152:in `perform_action_with_flash'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:533:in `process'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:607:in `process_with_filters'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:392:in `process'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:387:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/routing/route_set.rb:439:in `call'
/home/institut/ruby/gestor/app/views/layouts/application.html.erb:55:in `_run_erb_app47views47layouts47application46html46erb'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `block in render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:307:in `with_template'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/template.rb:206:in `render_template'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:266:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:353:in `_render_with_layout'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:263:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1253:in `render_for_file'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:937:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:52:in `block in render_with_benchmark'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `block in ms'
/opt/ruby-lur/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `ms'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:52:in `render_with_benchmark'
/home/institut/ruby/gestor/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:20:in `render_with_wicked_pdf'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1329:in `default_render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1335:in `perform_action'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:618:in `call_filters'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:611:in `perform_action_with_filters'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:69:in `block in perform_action_with_benchmark'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `block in ms'
/opt/ruby-lur/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `ms'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:69:in `perform_action_with_benchmark'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/rescue.rb:161:in `perform_action_with_rescue'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/flash.rb:152:in `perform_action_with_flash'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:533:in `process'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:607:in `process_with_filters'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:392:in `process'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:387:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/routing/route_set.rb:439:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:88:in `dispatch'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:122:in `_call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:131:in `block in build_middleware_stack'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in `call'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in `block in call'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:9:in `cache'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:28:in `call'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/string_coercion.rb:26:in `call'
/home/institut/ruby/gems/gems/rack-1.1.6/lib/rack/head.rb:9:in `call'
/home/institut/ruby/gems/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/params_parser.rb:16:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/session/cookie_store.rb:100:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/failsafe.rb:27:in `call'
/home/institut/ruby/gems/gems/rack-1.1.6/lib/rack/lock.rb:11:in `block in call'
/home/institut/ruby/gems/gems/rack-1.1.6/lib/rack/lock.rb:11:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:107:in `call'
/home/institut/ruby/gems/gems/rails-2.3.15/lib/rails/rack/static.rb:32:in `call'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:107:in `process_request'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
/home/institut/ruby/gestor/app/views/layouts/application.html.erb:55:in `_run_erb_app47views47layouts47application46html46erb'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `block in render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:307:in `with_template'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/template.rb:206:in `render_template'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:266:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:353:in `_render_with_layout'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:263:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1253:in `render_for_file'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:937:in `render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:52:in `block in render_with_benchmark'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `block in ms'
/opt/ruby-lur/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `ms'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:52:in `render_with_benchmark'
/home/institut/ruby/gestor/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:20:in `render_with_wicked_pdf'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1329:in `default_render'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1335:in `perform_action'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:618:in `call_filters'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:611:in `perform_action_with_filters'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:69:in `block in perform_action_with_benchmark'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `block in ms'
/opt/ruby-lur/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/home/institut/ruby/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:18:in `ms'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:69:in `perform_action_with_benchmark'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/rescue.rb:161:in `perform_action_with_rescue'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/flash.rb:152:in `perform_action_with_flash'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:533:in `process'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:607:in `process_with_filters'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:392:in `process'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:387:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/routing/route_set.rb:439:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:88:in `dispatch'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:122:in `_call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:131:in `block in build_middleware_stack'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in `call'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in `block in call'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:9:in `cache'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:28:in `call'
/home/institut/ruby/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/string_coercion.rb:26:in `call'
/home/institut/ruby/gems/gems/rack-1.1.6/lib/rack/head.rb:9:in `call'
/home/institut/ruby/gems/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/params_parser.rb:16:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/session/cookie_store.rb:100:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/failsafe.rb:27:in `call'
/home/institut/ruby/gems/gems/rack-1.1.6/lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
/home/institut/ruby/gems/gems/rack-1.1.6/lib/rack/lock.rb:11:in `call'
/home/institut/ruby/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:107:in `call'
/home/institut/ruby/gems/gems/rails-2.3.15/lib/rails/rack/static.rb:32:in `call'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:107:in `process_request'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
/opt/ruby-3.0/lib/ruby/gems/3.0.0/gems/passenger-6.0.9/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
Request
Parameters:
None
Show session dump
Response
Headers:
{"Cache-Control"=>"no-cache",
"Content-Type"=>"text/html"}