Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A test in custom-made decorators
Ruby JavaScript CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Decorators Test

A minimal Decorator for Rails.

Relevant files are:

  • All under app/decorators
  • config/decorators.rb, which enables using ActionView helpers within decorators
  • The show action in app/controllers/shoes_controller.rb
  • app/views/shoes/show.html.erb, which demos how a decorator is used from within a view
Something went wrong with that request. Please try again.