Sha256: 56e462f21e9653362a94a5135b55074aadb073e178d7515e3308000f0f05ff05

Contents?: true

Size: 337 Bytes

Versions: 6

Compression:

Stored size: 337 Bytes

Contents

class Post < Struct.new(:id); end

class PostsController < ApplicationController
  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
    render action: :new
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
loaf-0.8.1 spec/rails_app/app/controllers/posts_controller.rb
loaf-0.8.0 spec/rails_app/app/controllers/posts_controller.rb
loaf-0.7.0 spec/rails_app/app/controllers/posts_controller.rb
loaf-0.6.2 spec/rails_app/app/controllers/posts_controller.rb
loaf-0.6.1 spec/rails_app/app/controllers/posts_controller.rb
loaf-0.6.0 spec/rails_app/app/controllers/posts_controller.rb