Skip to content

Commit

Permalink
+ stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Hanke committed Jun 9, 2008
1 parent 84f314d commit 5433b50
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
5 changes: 3 additions & 2 deletions amazombie/app/controllers/cart_controller.rb
Expand Up @@ -3,11 +3,12 @@ class CartController < ApplicationController
include PresenterHelper

def self.example_methods
%w{books_each_partial description_line_in_model description_line_helper simple_presenter presenter_with_filter presenter_with_render_as collection_presenter}
# books_each_partial description_line_in_model description_line_helper
%w{simple_presenter presenter_with_filter presenter_with_render_as collection_presenter collection_presenter.text}
end

def index
redirect_to :action => 'books_each_partial'
redirect_to :action => 'simple_presenter'
end

def books_each_partial
Expand Down
5 changes: 0 additions & 5 deletions amazombie/app/presenters/brain.rb
@@ -1,10 +1,5 @@
class Presenters::Brain < Presenters::Product

# Standard presenter method.
# Looks nice…
# url_for would work, too…
# but can you spot the wet parts?
#
def description_line
%Q{"#{model.former_host}", IQ #{model.iq}#{model.price} EUR}
end
Expand Down
2 changes: 1 addition & 1 deletion amazombie/app/views/cart/books_each_partial.haml
@@ -1,4 +1,4 @@
%ol.list
- @items.each do |item|
%li
= render :partial => 'cart_item', :locals => { :item => item}
= render :partial => 'cart_item', :locals => { :item => item }
5 changes: 2 additions & 3 deletions amazombie/app/views/cart/presenter_with_render_as.haml
@@ -1,6 +1,5 @@
%ol.list
- @items.each do |item|
%li
.item
- presenter = presenter_for item
= presenter.render_as :cart_item
- presenter = presenter_for item
= presenter.render_as :cart_item
7 changes: 6 additions & 1 deletion amazombie/vendor/plugins/haml/init.rb
@@ -1,2 +1,7 @@
require 'haml'
begin
require File.join(File.dirname(__FILE__), 'lib', 'haml') # From here
rescue LoadError
require 'haml' # From gem
end

Haml.init_rails(binding)
Binary file modified presentations/080525-representer.key/index.apxl.gz
Binary file not shown.
Binary file modified presentations/080525-representer.key/thumbs/st22.tiff
Binary file not shown.
Binary file modified presentations/080525-representer.key/thumbs/st29.tiff
Binary file not shown.

0 comments on commit 5433b50

Please sign in to comment.