spec/rails_app/app/controllers/comments_controller.rb in loaf-0.6.2 vs spec/rails_app/app/controllers/comments_controller.rb in loaf-0.7.0
- old
+ new
@@ -3,9 +3,12 @@
class CommentsController < ApplicationController
breadcrumb lambda { |c| c.find_article(c.params[:post_id]).title },
lambda { |c| c.post_comments_path(c.params[:post_id]) }
+ breadcrumb -> { find_article(params[:post_id]).title + " No Controller" },
+ -> { post_comments_path(params[:post_id], no_controller: true) }
+
def index
end
def show
end