Class: Spooky::AuthorsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Spooky::AuthorsController
- Defined in:
- app/controllers/spooky/authors_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/spooky/authors_controller.rb', line 3 def index , @pagination = ghost.( include: "count.posts", filter: "visibility:public", page: params[:page].presence, limit: params[:limit].presence ) render_404 unless end |
#show ⇒ Object
14 15 16 17 |
# File 'app/controllers/spooky/authors_controller.rb', line 14 def show = ghost.(slug: params[:id]) render_404 unless end |