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

8 lines
198 B
Ruby
Raw Normal View History

2013-12-25 10:39:05 +00:00
class HomeController < ApplicationController
2014-03-14 06:37:59 +00:00
layout "store_index"
2013-12-25 10:39:05 +00:00
def index
2014-03-14 06:37:59 +00:00
@templates = Template.desc(:created_at).limit(12)
@extensions = Extension.desc(:created_at).limit(12)
2013-12-25 10:39:05 +00:00
end
end