module-and-template-store/app/controllers/home_controller.rb

7 lines
173 B
Ruby

class HomeController < ApplicationController
def index
@templates = Template.desc(:created_at).limit(3)
@extensions = Extension.desc(:created_at).limit(3)
end
end