Class: AuthorsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/authors_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

get /authors



5
6
7
# File 'app/controllers/authors_controller.rb', line 5

def index
  @collection = EditorialMember.list_for_visitors
end

#showObject

get /authors/:slug



10
11
12
13
14
15
16
# File 'app/controllers/authors_controller.rb', line 10

def show
  @collection = Post.owned_by(@entity.user).page_for_visitors(current_page)
  respond_to do |format|
    format.html
    format.json { render('posts/index') }
  end
end