# MissingSourceFile: no such file to load -- login\_engine

**URL:** <https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-login-engine/64046>\
**Category:** Engines\
**Created:** [June 21, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-login-engine/64046 "2006-06-21T16:57:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jqr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jqr](https://www.ruby-forum.com/u/jqr)\
**Post date:** [June 21, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-login-engine/64046/1 "2006-06-21T16:57:46Z")

</div>

This error seems to stem from the require line in application.rb. I’m  
new to Rails, but I’m assuming that this should load the  
lib/login\_engine.rb from within the vendor/plugins/login\_engine  
directory.

I’ve been over the install docs several times and followed along with  
the login engine demonstration video. I must have missed something  
crucial along the way but I can’t find it. Any idea what it might be?

$ ruby --version  
ruby 1.8.4 (2005-12-24)

$ rails --version  
Rails 1.1.2

both engines and login\_engines have been installed with script/plugin  
today

---

<div class="post-metadata">

**Author:** ![jqr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jqr](https://www.ruby-forum.com/u/jqr)\
**Post date:** [June 21, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-login-engine/64046/2 "2006-06-21T17:03:15Z")

</div>

I suppose I should add, this is the error I get when accessing

[http://localhost:3000/user/login/](http://localhost:3000/user/login/)

MissingSourceFile

no such file to load – login\_engine

RAILS\_ROOT: script/…/config/…  
Application Trace | Framework Trace | Full Trace

/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require__' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:147:in  
`require’  
#{RAILS\_ROOT}/app/controllers/application.rb:4  
-e:4

This error occured while loading the following files:  
application.rb  
login\_engine

---

<div class="post-metadata">

**Author:** ![jqr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jqr](https://www.ruby-forum.com/u/jqr)\
**Post date:** [June 21, 2006, 7:14pm UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-login-engine/64046/3 "2006-06-21T19:14:07Z")

</div>

Problem Solved:

Server needs to be restarted after any edits to environments.rb

---

<div class="post-metadata">

**Author:** ![jqr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jqr](https://www.ruby-forum.com/u/jqr)\
**Post date:** [February 18, 2009, 12:42am UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-login-engine/64046/4 "2009-02-18T00:42:46Z")

</div>

Eli M. wrote:

> Problem Solved:
> 
> Server needs to be restarted after any edits to environments.rb

Solution to the problem that worked for me:  
…

When you go to [http://localhost:3000/](http://localhost:3000/) page then click on the “About your  
application environment” link to see if the things are working for you.

If it says about the sqlite3 missing problem then you need to install  
sqlite3 plugin using gem. I got the problem using sqlite3 as well as  
mysql.

Using mysql(mysql installed in advance)  
created application using : rails -d mysql demo  
you need to make appropriate changes to config/database.yml file such as  
user name ( I kept the user name as root while configuring mysql) and  
password of the “development environment” only( no need to do anything  
in production or test) as well provide the name of the database which  
you can create using mysql client.

mysql\>CREATE DATABASE mydiary;

I hope the same applies using sqlite3.

Thanks,  
Sulabh J.
