# Script/Server working but Script/Console not working

**URL:** <https://www.ruby-forum.com/t/script-server-working-but-script-console-not-working/151759>\
**Category:** Rails\
**Created:** [October 25, 2008, 6:32am UTC](https://www.ruby-forum.com/t/script-server-working-but-script-console-not-working/151759 "2008-10-25T06:32:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/6a8cbe/32.png) [@vinay](https://www.ruby-forum.com/u/vinay)\
**Post date:** [October 25, 2008, 6:32am UTC](https://www.ruby-forum.com/t/script-server-working-but-script-console-not-working/151759/1 "2008-10-25T06:32:21Z")

</div>

Hi all,  
I have been having a very weird problem for a few weeks. I am able to  
start up the server using “script/server” for my application and run  
it successfully but “script/console” is not working. I have been  
managing without it but somethings not right and i need to fix it.  
This is the error that it throws and the trace.  
Loading development environment (Rails 2.1.0)  
/Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require': no such file to load -- application (MissingSourceFile) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in`require’  
from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/  
active\_support/dependencies.rb:509:in `require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/ active_support/dependencies.rb:354:in`new\_constants\_in’  
from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/  
active\_support/dependencies.rb:509:in `require' from /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/ console_with_helpers.rb:19 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
from /Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in  
`require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/ active_support/dependencies.rb:509:in`require’  
from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/  
active\_support/dependencies.rb:354:in `new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/ active_support/dependencies.rb:509:in`require’  
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/  
ruby/1.8/irb/init.rb:253:in `load_modules' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/irb/init.rb:251:in`each’  
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/  
ruby/1.8/irb/init.rb:251:in `load_modules' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/irb/init.rb:21:in`setup’  
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/  
ruby/1.8/irb.rb:54:in `start’  
from /usr/bin/irb:13  
I also need the console for some quick debugging and info. Hope  
someone can help me figure out what the problem is.

---

<div class="post-metadata">

**Author:** ![vinay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/6a8cbe/32.png) [@vinay](https://www.ruby-forum.com/u/vinay)\
**Post date:** [October 25, 2008, 9:40am UTC](https://www.ruby-forum.com/t/script-server-working-but-script-console-not-working/151759/2 "2008-10-25T09:40:33Z")

</div>

On Oct 25, 3:31 pm, Vinay [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi all,  
> I have been having a very weird problem for a few weeks. I am able to  
> start up the server using “script/server” for my application and run  
> it successfully but “script/console” is not working. I have been  
> managing without it but somethings not right and i need to fix it.  
> This is the error that it throws and the trace.  
> Loading development environment (Rails 2.1.0)  
> /Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in  
> `gem\_original\_require’: no such file to load – application  
> (MissingSourceFile)

Might be something to do with app/controllers/application.rb.  
Do you have it?  
It will contain: class ApplicationController \< ActionController::Base

–  
Daniel B.

---

<div class="post-metadata">

**Author:** ![vinay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/6a8cbe/32.png) [@vinay](https://www.ruby-forum.com/u/vinay)\
**Post date:** [October 25, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/script-server-working-but-script-console-not-working/151759/3 "2008-10-25T12:33:45Z")

</div>

@Daniel,  
That was it!  
I had changed the file name to application\_controller.rb because some  
helper methods were not available for the views and i thought the name  
might’ve been the problem. And then i had fixed it by using  
helper\_method. Forgot to change the file name back to application.rb!  
thanks Daniel :).
