raven/lib/routes/index.rb

13 lines
182 B
Ruby
Raw Normal View History

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