You don't actually need the @videos instance... your view is only using @categories and "category.recent_videos' under each category.  It never refers to @videos.