raven/app/routes/index.rb

17 lines
315 B
Ruby

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