# Why will Event\_list not display?

**URL:** <https://www.ruby-forum.com/t/why-will-event-list-not-display/121092>\
**Category:** Rails\
**Created:** [November 23, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/why-will-event-list-not-display/121092 "2007-11-23T17:09:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cantankerous](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e95f7d/32.png) [@cantankerous](https://www.ruby-forum.com/u/cantankerous)\
**Post date:** [November 23, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/why-will-event-list-not-display/121092/1 "2007-11-23T17:09:28Z")

</div>

Hi,

I have two models / controllers, one of which I can display (Events),  
the other which is identical in all but name (Event\_lists) throws an  
error.

The working code is

```
def index
    @events = Event.find(:all)
end

```

The failing code is

```
def index
    @event_lists = Event_list.find(:all)
end

```

with the following in the view

\<%= debug @event\_lists %\>

the error I get is

LoadError in Event listsController#index  
Expected /Users/AlexE/Documents/RailsDev/tet\_v1/app/models/  
event\_list.rb to define Event\_list

trying a find in the console works for Event.find(:all) but when I try  
it for Event\_list.find(:all) I get the following error

LoadError: Expected script/…/config/…/config/…/app/models/  
event\_list.rb to define Event\_list  
from /Applications/Locomotive2/Bundles/  
standardRailsMar2007.locobundle/i386/lib/ruby/gems/1.8/gems/  
activesupport-1.4.2/lib/active\_support/dependencies.rb:249:in  
`load_missing_constant' from /Applications/Locomotive2/Bundles/ standardRailsMar2007.locobundle/i386/lib/ruby/gems/1.8/gems/ activesupport-1.4.2/lib/active_support/dependencies.rb:452:in`const\_missing’  
from /Applications/Locomotive2/Bundles/  
standardRailsMar2007.locobundle/i386/lib/ruby/gems/1.8/gems/  
activesupport-1.4.2/lib/active\_support/dependencies.rb:464:in  
`const\_missing’  
from (irb):2

Why does one work and not the other?

rgds/alex

---

<div class="post-metadata">

**Author:** ![cantankerous](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e95f7d/32.png) [@cantankerous](https://www.ruby-forum.com/u/cantankerous)\
**Post date:** [November 23, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/why-will-event-list-not-display/121092/2 "2007-11-23T17:17:22Z")

</div>

EventList.find ?

---

<div class="post-metadata">

**Author:** ![cantankerous](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e95f7d/32.png) [@cantankerous](https://www.ruby-forum.com/u/cantankerous)\
**Post date:** [November 23, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/why-will-event-list-not-display/121092/3 "2007-11-23T17:21:47Z")

</div>

Thorsten,

Thanks, I’m (very) new at this.

Alex

On Nov 23, 4:17 pm, Thorsten M. \<rails-mailing-l…@andreas-
