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