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