NoMethodError in Display#list_styles

Showing /var/www/scoutdfw/app/views/display/list_styles.html.erb where line #9 raised:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each

Extracted source (around line #9):

6: <div id="scrollbox">
7: <div id="thumbs">
8: 
9: <% for view in @views[$first_view..$last_view] %>
10:   <% if view.size =~ /.*M.*/ %>
11:     <% new_slidek = view.filename.sub(/M\./, "G\.") %>
12:     <% height = 300 %>

Rails.root: /var/www/scoutdfw

Application Trace | Framework Trace | Full Trace
app/views/display/list_styles.html.erb:9:in `_app_views_display_list_styles_html_erb__3745770816165887090_70156453876040_3426950593100188111'

Request

Parameters:

{"order"=>"159"}

Show session dump

Show env dump

Response

Headers:

None