Sha256: 95f42f5d8e47b36b3ec6c86c24e07d2e6560f32d6b254e5c4835b5724b12f857
Contents?: true
Size: 471 Bytes
Versions: 5
Compression:
Stored size: 471 Bytes
Contents
class PagesController < ApplicationController crumb :home, 'Home' crumb(:static) { 'Static' } crumb :i18n do I18n.t('hello') end crumb :nested, ->(params) { 'Nested' } crumb :param, proc { |params| "Param#{params[:param]}" } def home render :crumbs end def static render :crumbs end def i18n render :crumbs end def nested render :crumbs end def param render :crumbs end def empty render :crumbs end end
Version data entries
5 entries across 5 versions & 1 rubygems