public
Description: An example of using presenters and cells in Ruby on Rails application
Homepage: http://kpumuk.info/ruby-on-rails/simplifying-your-ruby-on-rails-code/
Clone URL: git://github.com/kpumuk/presenter-example.git
kpumuk (author)
Tue Sep 08 04:46:14 -0700 2009
commit  f45caacafdded44e0896ce5542ba4158145ca188
tree    ce5928c792aa7166bbc8d0252c9e3292fc69ec8b
parent  0a7ee4dae94cd45415456943bc9c56a4dab2cdae
README.rdoc

Presenter Example

This is a sample application for my article about Ruby on Rails application simplifying:

kpumuk.info/ruby-on-rails/simplifying-your-ruby-on-rails-code-presenter-pattern-cells-plugin

Check this article to get an idea what’s going on.

Setup and test data

First you need to create and migrate the database:

  rake db:create
  rake db:migrate

There are two rake tasks to load test data:

  rake data:videos
  rake data:categories