mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 12:12:21 -05:00
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
15 lines
265 B
Ruby
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
|