# LoadError (Expected websites\_controller.rb to define WebsitesController)

**URL:** <https://www.ruby-forum.com/t/loaderror-expected-websites-controller-rb-to-define-websitescontroller/130152>\
**Category:** Rails\
**Created:** [February 25, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/loaderror-expected-websites-controller-rb-to-define-websitescontroller/130152 "2008-02-25T21:30:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [February 25, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/loaderror-expected-websites-controller-rb-to-define-websitescontroller/130152/1 "2008-02-25T21:30:17Z")

</div>

Hi,

I just removed all my RoR files on my web server and re uploaded them  
again because I made so many changes to my application. Now all of a  
sudden, I’m getting the LoadError (Expected websites\_controller.rb to  
define WebsitesController). But this is the first line of my  
websites\_controller.rb:

class WebsitesController \< ApplicationController

Any ideas why I might be getting such a crazy error? My application  
worked fine in the past.

-Ryan
