Sha256: 667b3612dd0c00ec4954d4a2f7a32379c281dc717bdf63677c53eabed71b3790

Contents?: true

Size: 600 Bytes

Versions: 6

Compression:

Stored size: 600 Bytes

Contents

class AuthorsController < ContentController
  layout :theme_layout
  
  def show
    @author = User.find_by_login(params[:id]) 
    raise ActiveRecord::RecordNotFound unless @author

    respond_to do |format|
      format.html
      format.rss do
        @limit = this_blog.limit_rss_display
        auto_discovery_feed(:only_path => false)
        render :partial => "articles/rss20_feed", :object => @author.articles
      end
      format.atom do
        @limit = this_blog.limit_rss_display
        render :partial => "articles/atom_feed", :object => @author.articles
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typo-5.5 app/controllers/authors_controller.rb
typo-5.4.4 app/controllers/authors_controller.rb
typo-5.4.3 app/controllers/authors_controller.rb
typo-5.4.2 app/controllers/authors_controller.rb
typo-5.4.1 app/controllers/authors_controller.rb
typo-5.4 app/controllers/authors_controller.rb