# A copy of Authenticated/ArgumentError in Smerf\_forms#show

**URL:** <https://www.ruby-forum.com/t/a-copy-of-authenticated-argumenterror-in-smerf-forms-show/177752>\
**Category:** Rails\
**Created:** [October 23, 2009, 2:26am UTC](https://www.ruby-forum.com/t/a-copy-of-authenticated-argumenterror-in-smerf-forms-show/177752 "2009-10-23T02:26:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cybo0](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/54ee81/32.png) [@cybo0](https://www.ruby-forum.com/u/cybo0)\
**Post date:** [October 23, 2009, 2:26am UTC](https://www.ruby-forum.com/t/a-copy-of-authenticated-argumenterror-in-smerf-forms-show/177752/1 "2009-10-23T02:26:14Z")

</div>

the full text of the error is below. It seems like that Rails gets  
confused with dependencies. i tried the solution offered online,  
specifically

insert

config.load\_paths += %W( #{RAILS\_ROOT}/lib )  
config.load\_once\_paths += %W( #{RAILS\_ROOT}/lib )

in config/development.rb

but it didn’t work. every works on the first attempt (i need to create a  
new form and then save it to the database), but when it fails on the  
second attempt. so if i the same user creates a second form and tried to  
save it, it doesn’t work.

does anyone know what the problem might be?

ArgumentError in Smerf\_forms#show

Showing app/views/layouts/application.html.erb where line #26 raised:

A copy of AuthenticatedSystem has been removed from the module tree but  
is still active!

Extracted source (around line #26):

23: \<% end %\>  
24: \<%= “

# #{@page\_title}
” if @page\_title %\>  
25: 

26: \<% if current\_user != :false %\>  
27: Logged in as \<%= current\_user.login %\>  
28: (\<%= link\_to “Logout”, :controller =\> “/account”, :action =\>  
“logout” %\>)  
29: \<% else %\>

RAILS\_ROOT: C:/Users/Raheel/RubymineProjects/Program1  
Application Trace | Framework Trace | Full Trace

C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/dependencies.rb:414:in  
`load_missing_constant' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in`const\_missing’  
C:/Users/Raheel/RubymineProjects/Program1/lib/authenticated\_system.rb:11:in  
`current_user' (eval):2:in`send’  
(eval):2:in `current_user' C:/Users/Raheel/RubymineProjects/Program1/app/views/layouts/application.html.erb:26:in`\_run\_erb\_app47views47layouts47application46html46erb’

C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/dependencies.rb:414:in  
`load_missing_constant' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in`const\_missing’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_view/renderable.rb:34:in  
`send' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_view/base.rb:301:in  
`with_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:30:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_view/template.rb:199:in  
`render_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:260:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_view/base.rb:347:in  
`_render_with_layout' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:257:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/base.rb:1250:in  
`render_for_file' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:951:in`render\_without\_benchmark’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/benchmarking.rb:51:in  
`render' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/core\_ext/benchmark.rb:10:in  
`realtime' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/benchmarking.rb:51:in  
`render' C:/Users/Raheel/RubymineProjects/Program1/vendor/plugins/smerf/app/controllers/smerf_forms_controller.rb:47:in`show’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/base.rb:1331:in  
`send' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in`perform\_action\_without\_filters’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/filters.rb:617:in  
`call_filters' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:610:in`perform\_action\_without\_benchmark’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/benchmarking.rb:68:in  
`perform_action_without_rescue' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/core\_ext/benchmark.rb:10:in  
`realtime' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/benchmarking.rb:68:in  
`perform_action_without_rescue' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/rescue.rb:160:in`perform\_action\_without\_flash’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/flash.rb:146:in  
`perform_action' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:in`send’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/base.rb:532:in  
`process_without_filters' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:606:in`process’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/base.rb:391:in  
`process' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:386:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/routing/route\_set.rb:437:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:87:in`dispatch’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/dispatcher.rb:121:in  
`_call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:130:in`build\_middleware\_stack’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active\_record/query\_cache.rb:29:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active\_record/connection\_adapters/abstract/query\_cache.rb:34:in  
`cache' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:9:in`cache’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active\_record/query\_cache.rb:28:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/params\_parser.rb:15:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:93:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/failsafe.rb:26:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in  
`synchronize' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/dispatcher.rb:114:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/reloader.rb:34:in`run’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/dispatcher.rb:108:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/rack/static.rb:31:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in`each’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/rack/log_tailer.rb:17:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content\_length.rb:13:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:in`service’  
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in`run’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in`start’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in`start’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in`start’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in`start’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:13:in  
`run' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:111 C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`gem\_original\_require’  
C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require’  
C:/Users/Raheel/RubymineProjects/Program1/script/server:3

C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/dependencies.rb:414:in  
`load_missing_constant' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in`const\_missing’  
C:/Users/Raheel/RubymineProjects/Program1/lib/authenticated\_system.rb:11:in  
`current_user' (eval):2:in`send’  
(eval):2:in `current_user' C:/Users/Raheel/RubymineProjects/Program1/app/views/layouts/application.html.erb:26:in`\_run\_erb\_app47views47layouts47application46html46erb’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_view/renderable.rb:34:in  
`send' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_view/base.rb:301:in  
`with_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:30:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_view/template.rb:199:in  
`render_template' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:260:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_view/base.rb:347:in  
`_render_with_layout' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:257:in`render’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/base.rb:1250:in  
`render_for_file' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:951:in`render\_without\_benchmark’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/benchmarking.rb:51:in  
`render' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/core\_ext/benchmark.rb:10:in  
`realtime' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/benchmarking.rb:51:in  
`render' C:/Users/Raheel/RubymineProjects/Program1/vendor/plugins/smerf/app/controllers/smerf_forms_controller.rb:47:in`show’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/base.rb:1331:in  
`send' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in`perform\_action\_without\_filters’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/filters.rb:617:in  
`call_filters' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:610:in`perform\_action\_without\_benchmark’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/benchmarking.rb:68:in  
`perform_action_without_rescue' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/core\_ext/benchmark.rb:10:in  
`realtime' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in`ms’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/benchmarking.rb:68:in  
`perform_action_without_rescue' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/rescue.rb:160:in`perform\_action\_without\_flash’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/flash.rb:146:in  
`perform_action' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:in`send’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/base.rb:532:in  
`process_without_filters' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:606:in`process’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/base.rb:391:in  
`process' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:386:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/routing/route\_set.rb:437:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:87:in`dispatch’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/dispatcher.rb:121:in  
`_call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:130:in`build\_middleware\_stack’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active\_record/query\_cache.rb:29:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active\_record/connection\_adapters/abstract/query\_cache.rb:34:in  
`cache' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:9:in`cache’  
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active\_record/query\_cache.rb:28:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in `call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/params\_parser.rb:15:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:93:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/failsafe.rb:26:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in  
`synchronize' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/dispatcher.rb:114:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/reloader.rb:34:in`run’  
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action\_controller/dispatcher.rb:108:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/rack/static.rb:31:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in`each’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/rack/log_tailer.rb:17:in`call’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content\_length.rb:13:in  
`call' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:46:in`service’  
C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in`run’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in`start’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in`start’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in`start’  
C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in`start’  
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:13:in  
`run' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:111 C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`gem\_original\_require’  
C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require' C:/Users/Raheel/RubymineProjects/Program1/script/server:3 -e:1:in`load’  
-e:1

Request

Parameters:

{“id”=\>“user2\_survey3”}

Show session dump

* * *

Response

Headers:

{“Content-Type”=\>“text/html”,  
“Cache-Control”=\>“no-cache”}
