Interrupt in Articles#homepage

Showing app/views/shared/_new_featured.html.erb where line #5 raised:

Extracted source (around line #5):

2: 	<h2><a href="/events">Spotlight</a></h2>
3: 	<div class="purple_block"></div>
4: 	
5: 	<%if event = Event.random_featured_event %>
6: 	<h3 class="standfirst"><%=titled_link(event)%></h3>
7: 	<img src="/article_images/side/side_<%=event.image%>" />
8: 	<p><%=event.abstract%></p>

Trace of template inclusion: app/views/articles/homepage.html.haml

RAILS_ROOT: /Users/tamc2/Documents/NMK/feb-28-upgrade

Application Trace | Framework Trace | Full Trace
(__DELEGATION__):1:in `with_scope'
(__DELEGATION__):2:in `__send__'
(__DELEGATION__):2:in `with_scope'
/Users/tamc2/Documents/NMK/feb-28-upgrade/app/models/event.rb:18:in `random_featured_event'
/Users/tamc2/Documents/NMK/feb-28-upgrade/app/views/shared/_new_featured.html.erb:5:in `_run_erb_app47views47shared47_new_featured46html46erb_locals_new_featured_object'
/Library/Ruby/Gems/1.8/gems/haml-2.0.6/lib/haml/helpers/action_view_mods.rb:12:in `render'
/Library/Ruby/Gems/1.8/gems/haml-2.0.6/lib/haml/helpers.rb:57:in `non_haml'
/Library/Ruby/Gems/1.8/gems/haml-2.0.6/lib/haml/helpers/action_view_mods.rb:12:in `render'
/Users/tamc2/Documents/NMK/feb-28-upgrade/app/views/articles/homepage.html.haml:1:in `_run_haml_app47views47articles47homepage46html46haml'
/Library/Ruby/Gems/1.8/gems/haml-2.0.6/lib/haml/helpers/action_view_mods.rb:14:in `render'
/Library/Ruby/Gems/1.8/gems/haml-2.0.6/lib/haml/helpers/action_view_mods.rb:14:in `render'
lib/crud_methods.rb:125:in `respond_appropriately'
/Users/tamc2/Documents/NMK/feb-28-upgrade/app/controllers/articles_controller.rb:11:in `homepage'
/Library/Ruby/Gems/1.8/gems/haml-2.0.6/lib/sass/plugin/rails.rb:19:in `process'

Request

Parameters:

None

Show session dump

Response

Headers:

{"Content-Type"=>"text/html",
 "Cache-Control"=>"no-cache"}