Sha256: 24018c7d57bebe92b2dfcbe562ad6b74e0e40eafd89b9962a20d259be9effe19
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
require 'action_controller' class MetalController < ActionController::Metal include Rack::Tracker::Controller include AbstractController::Rendering include ActionView::Layouts append_view_path File.join(File.dirname(__FILE__), '../fixtures/views') layout 'application' def index tracker do |t| t.track_all_the_things like: 'no-one-else' t.another_handler likes: 'you' end render "metal/index" end def facebook tracker do |t| t.facebook 'conversion-event', { value: '1', currency: 'EUR' } end render "metal/index" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-tracker-0.0.4 | spec/support/metal_controller.rb |