# "no such file to load -- application" Error

**URL:** <https://www.ruby-forum.com/t/no-such-file-to-load-application-error/170734>\
**Category:** Radiant CMS\
**Created:** [June 22, 2009, 8:07am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-application-error/170734 "2009-06-22T08:07:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [June 22, 2009, 8:07am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-application-error/170734/1 "2009-06-22T08:07:13Z")

</div>

All,

I upgraded to 0.8.0 and now I get an error when I try to run anything.  
See the examples below:

* * *

rake production radiant:extensions:gallery:migrate  
(in /home)  
Could not load extension from file: gallery\_extension.  
#\<MissingSourceFile: no such file to load – application\>  
Could not load extension from file: page\_attachments\_extension.  
#\<MissingSourceFile: no such file to load – application\>  
rake aborted!  
no such file to load – application

* * *

rake production ray:extension:update name=all  
(in /home)  
Could not load extension from file: gallery\_extension.  
#\<MissingSourceFile: no such file to load – application\>  
Could not load extension from file: page\_attachments\_extension.  
#\<MissingSourceFile: no such file to load – application\>

* * *

Do you know how I can solve this? I think it has something to do with  
the new Rails convention of appending “\_controller” to the application  
controller, but I am not sure why I see the error and apparently others  
don’t.

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [August 28, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-application-error/170734/2 "2009-08-28T17:10:44Z")

</div>

I’m having the exact same issue. Let me know if you solve it.

Sergio B.

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [September 23, 2009, 1:04pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-application-error/170734/3 "2009-09-23T13:04:06Z")

</div>

Hey Ben,

for me, setting config.cache\_classes to false (config.cache\_classes =  
false) fixed the error.

I haven’t yet exactly figured out why caching the classes breaks stuff.

Hope this helps,  
Dennis
