# Help: "500 Internal Server Error"

**URL:** <https://www.ruby-forum.com/t/help-500-internal-server-error/193525>\
**Category:** Rails\
**Created:** [August 19, 2010, 6:22am UTC](https://www.ruby-forum.com/t/help-500-internal-server-error/193525 "2010-08-19T06:22:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwigal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Post date:** [August 19, 2010, 6:22am UTC](https://www.ruby-forum.com/t/help-500-internal-server-error/193525/1 "2010-08-19T06:22:09Z")

</div>

Hi guys,

I am a completely ruby & rails newbie. i have being struggling on this  
issue for almost 2 days, still can not figure out the problem.

there are two websites i’m trying to set up a development environment on  
my pc running windows xp 32 bit version. a front-end customer facing  
page & back-end admin page.

the procedure i have gone through is:

1. install ruby version 1.8.6
2. update rubygems version to the latest
3. install rails version 2.3.5
4. install mysql adapter
5. install mongrel & mongrel\_service
6. install all required gems for the application
7. create a fresh new rails app & replace the required folders & files  
from the source
8. create & migrate the mysql database and then resoted it with the data  
from live site
9. start the server and it’s running without any problems for the  
front-end site

then i went through the same process (from 7 to 9) for the back-end  
admin site as well, and type “rake gems:install” to install any required  
gems. then start the server, error shows as the following in the log  
file:

* * *

## \*\* has\_many\_polymorphs: autoload hook invoked \*\* has\_many\_polymorphs: preloading parent model Tag \*\* has\_many\_polymorphs: associating Tag.taggables e[4;36;1mSQL (0.0ms)e[0m e[0;1mSET NAMES ‘utf8’e[0m e[4;35;1mSQL (0.0ms)e[0m e[0mSET SQL\_AUTO\_IS\_NULL=0e[0m e[4;36;1mProject Columns (0.0ms)e[0m e[0;1mSHOW FIELDS FROM `projects`e[0m e[4;35;1mTagging Columns (0.0ms)e[0m e[0mSHOW FIELDS FROM `taggings`e[0m \*\* has\_many\_polymorphs: associating Tag.taggables e[4;36;1mUser Columns (0.0ms)e[0m e[0;1mSHOW FIELDS FROM `users`e[0m \*\* has\_many\_polymorphs: preloading parent model Tagging /!\ FAILSAFE /!\ Thu Aug 19 13:49:01 +1000 2010 Status: 500 Internal Server Error Expected C:/rails/admin/app/helpers/admin/activities\_helper.rb to define Admin::ActivitiesHelper c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/dependencies.rb:426:in `load_missing_constant' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in`const\_missing’ c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/inflector.rb:361:in `constantize' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in`each’ c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/inflector.rb:360:in `constantize' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/inflections.rb:162:in`constantize’ c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/helpers.rb:137:in `helper' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/helpers.rb:115:in`each’ c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/helpers.rb:115:in `helper' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/helpers.rb:120:in`helper’ c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/helpers.rb:115:in `each' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/helpers.rb:115:in`helper’ C:/rails/admin/app/controllers/application\_controller.rb:2 c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/dependencies.rb:380:in `load_without_new_constant_marking' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:380:in`load\_file’ c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/dependencies.rb:521:in `new_constants_in' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:379:in`load\_file’ c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/dependencies.rb:259:in `require_or_load' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:425:in`load\_missing\_constant’ c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active\_support/dependencies.rb:80:in `const_missing' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in`const\_missing’ c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:89:in `dispatch' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in`\_call’ c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:130:in `build_middleware_stack' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/query\_cache.rb:29:in `call' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in`cache’ c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/query\_cache.rb:9:in `cache' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:361:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/params\_parser.rb:15:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:93:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/failsafe.rb:26:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:114:in `call' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in`run’ c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:108:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in`each’ c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/content\_length.rb:13:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/chunked.rb:15:in`call’ c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in `process' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:159:in`process\_client’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in `each' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:158:in`process\_client’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `run' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in`initialize’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in `new' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:285:in`run’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `initialize' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in`new’ c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/mongrel.rb:268:in `run' c:/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:34:in`run’ c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/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’ script/server:3

any one know what is going on with this error. i think i installed all  
required gems.

thanks a lot.

---

<div class="post-metadata">

**Author:** ![jwigal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Post date:** [August 19, 2010, 6:41am UTC](https://www.ruby-forum.com/t/help-500-internal-server-error/193525/2 "2010-08-19T06:41:18Z")

</div>

C:/rails/admin/app/controllers/application\_controller.rb:2

---

<div class="post-metadata">

**Author:** ![jwigal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Post date:** [August 19, 2010, 7:19am UTC](https://www.ruby-forum.com/t/help-500-internal-server-error/193525/3 "2010-08-19T07:19:57Z")

</div>

Tim Teng wrote:

> C:/rails/admin/app/controllers/application\_controller.rb:2

i comment out that line then it works, great.

thx.

---

<div class="post-metadata">

**Author:** ![jwigal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Post date:** [August 19, 2010, 7:25am UTC](https://www.ruby-forum.com/t/help-500-internal-server-error/193525/4 "2010-08-19T07:25:48Z")

</div>

hey what was that line please suggest

On Thu, Aug 19, 2010 at 10:49 AM, Jeff W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> You received this message because you are subscribed to the Google G.  
> “Ruby on Rails: Talk” group.  
> To post to this group, send email to removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to  
> removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Thanks:  
Rajeev sharma
