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