Skip to content

Instantly share code, notes, and snippets.

@crutch
crutch / output.txt
Created February 25, 2017 22:54
dokku --trace redis:link when REDIS_URL exists in config
# dokku --trace redis:link bar foo
+ case "$(lsb_release -si)" in
++ lsb_release -si
+ export DOKKU_DISTRO=debian
+ DOKKU_DISTRO=debian
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
Resource:
has_many :relations_as_source, :class_name => "ResourceToResourceRelation", :as => :source
has_many :relations_as_target, :class_name => "ResourceToResourceRelation", :as => :target
---------------------------------------------------------------------------------------------
ResourceToResourceRelation:
belongs_to :source, :polymorphic => true
belongs_to :target, :polymorphic => true
---------------------------------------------------------------------------------------------
LearningObject < Resource
_count.html.erb
<h1><%= @count %></h1>
<%= link_to_event("--", :state => :_decrease) %>
<%= link_to_event("++", :state => :_increase) %>
<%= link_to_event("nothing", :state => :_dummy) %>
---------------------EOF--------------------------------------
counter_cell.rb
class CounterCell < Apotomo::StatefulWidget