namespace '/' do get '' do channels = Channel.reverse(:updated_at).limit(10).all() videos = Video.reverse(:updated_at).limit(10).all() erb :index, :locals => { :title => 'Dashboard', :channels => channels, :videos => videos } end end