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