Sha256: db37d99604b4cf00525ad7f449d3a576ad50b6fbb1bb87eb76ed074d546d686e
Contents?: true
Size: 816 Bytes
Versions: 3
Compression:
Stored size: 816 Bytes
Contents
# frozen_string_literal: true class AuthorsController < ContentController layout :theme_layout def show @author = User.find_by(login: params[:id]) raise ActiveRecord::RecordNotFound unless @author @articles = @author.articles.published.page(params[:page]) .per(this_blog.per_page(params[:format])) @page_title = this_blog.author_title_template.to_title(@author, this_blog, params) @keywords = this_blog.meta_keywords @description = this_blog.author_desc_template.to_title(@author, this_blog, params) auto_discovery_feed(only_path: false) respond_to do |format| format.rss { render_feed "rss" } format.atom { render_feed "atom" } format.html end end private def render_feed(format) render "show_#{format}_feed", layout: false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
publify_core-10.0.2 | app/controllers/authors_controller.rb |
publify_core-10.0.1 | app/controllers/authors_controller.rb |
publify_core-10.0.0 | app/controllers/authors_controller.rb |