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

8 lines
198 B
Ruby

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