This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################### | |
# To use: | |
# chmod +x install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
version=stable | |
port=6379 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# blog post: | |
module ActiveAdmin | |
module ViewHelpers | |
# lib/active_admin/view_helpers/auto_link_helper.rb | |
def auto_link(resource, link_content = nil) | |
content = link_content || display_name(resource) | |
if can?(:read, resource) && registration = active_admin_resource_for(resource.class) | |
begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include Survey::DSL | |
survey 'Finances Questionnaire' do | |
q "Do you have a Durable Power of Attorney for Finances?" do | |
yes do | |
a "Who is the designated agent for handling your finances?" do | |
field 'Full Name' | |
phone 'Phone Number' | |
email 'Email' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
# We are not loading Active Record, nor Active Resources etc. | |
# We can do this in any app by simply replacing the rails gem | |
# by the parts we want to use. | |
gem "actionpack", "~> 3.2" | |
gem "railties", "~> 3.2" | |
gem "tzinfo" | |
# Let's use thin |