Sha256: dd82de190fe4a5883de92a88bd0690e8cce5a387b4b6cbc2d994fadcc69d4501

Contents?: true

Size: 345 Bytes

Versions: 4

Compression:

Stored size: 345 Bytes

Contents

class Article < Struct.new(:id, :title); end

class CommentsController < ApplicationController

  breadcrumb lambda { |c| c.find_article(c.params[:post_id]).title },
             lambda { |c| c.post_comments_path(c.params[:post_id]) }

  def index
  end

  def show
  end

  def find_article(id)
    ::Article.new(id, 'Post comments')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
loaf-0.6.2 spec/rails_app/app/controllers/comments_controller.rb
loaf-0.6.1 spec/rails_app/app/controllers/comments_controller.rb
loaf-0.6.0 spec/rails_app/app/controllers/comments_controller.rb
loaf-0.5.0 spec/rails_app/app/controllers/comments_controller.rb