Sha256: fb19bad46cea3255f153fef5e662755641c083f65d888ccb8e4b4476cf717c6e

Contents?: true

Size: 332 Bytes

Versions: 7

Compression:

Stored size: 332 Bytes

Contents

class PostsController < ApplicationController
  add_crumb "Posts", :posts_url, :except => [:new]

  def index
    @posts = Post.all
  end

  def show
    @post = Post.find params[:id]
    
    @post.categories.each do |category|
      add_crumb category.title, "#"
    end
  end
  
  def new
    add_crumb "Forever Alone"
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
vinted-crummy-1.11.0 example/app/controllers/posts_controller.rb
crummy-schema-dot-org-1.9.0 example/app/controllers/posts_controller.rb
vinted-crummy-1.10.0 example/app/controllers/posts_controller.rb
vinted-crummy-1.9.0 example/app/controllers/posts_controller.rb
crummy-1.8.0 example/app/controllers/posts_controller.rb
crummy-1.7.2 example/app/controllers/posts_controller.rb
crummy-1.7.1 example/app/controllers/posts_controller.rb