Files
manyfold/app/controllers/home_controller.rb
T
Don Eisele b525d7acc3 css compacted alert/notice area when empty
structured top/models/creators/collections into 2nd row menu: keeping filters active between the different "views"
pulled filters into a concern to share code between the different views
added tree-based sql queries for handling collection nesting display and searching
2023-03-30 21:15:28 -05:00

15 lines
265 B
Ruby

class HomeController < ApplicationController
include ModelFilters
before_action :check_for_first_use
def index
@recent = Model.recent.limit(20)
end
private
def check_for_first_use
redirect_to new_library_path if Library.count === 0
end
end