Class: AuthorsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- AuthorsController
- Defined in:
- app/controllers/authors_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
get /authors.
-
#show ⇒ Object
get /authors/:slug.
Instance Method Details
#index ⇒ Object
get /authors
5 6 7 |
# File 'app/controllers/authors_controller.rb', line 5 def index @collection = EditorialMember.list_for_visitors end |
#show ⇒ Object
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 |