The main view, app/views/main/index.html.erb is supposed to be checking for this case at line 46, but the check fails because @program is not nil, but a blank array.
the fix is to have the main view check for @program.nil? || @program.blank? instead of just nil?
If there are no programs in the database, app/views/main/_featured_show.html.erb is failing at line 8:
<%= image_tag program.program_image.url(:medium) %>
The main view, app/views/main/index.html.erb is supposed to be checking for this case at line 46, but the check fails because @program is not nil, but a blank array.
the fix is to have the main view check for @program.nil? || @program.blank? instead of just nil?