spec/rails_app/app/controllers/posts_controller.rb in loaf-0.5.0 vs spec/rails_app/app/controllers/posts_controller.rb in loaf-0.6.0

- old
+ new

@@ -1,23 +1,20 @@ class Post < Struct.new(:id); end class PostsController < ApplicationController - - breadcrumb 'Home', :root_path, only: :index - def index breadcrumb 'all_posts', posts_path end def show @post = ::Post.new(1) end def new + breadcrumb 'All', :posts_path, match: :force breadcrumb 'New Post', new_post_path end def create - breadcrumb 'New Post', new_post_path, force: true render action: :new end end