-
console1984 — Privacy-aware Rails console that records sessions and protects encrypted data. Blog: Privacy-aware Rails consoles
-
audits1984 — Auditing interface for console1984 sessions. Blog: [Privacy-aware Rails
This file contains hidden or 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
| module RailsTemplate | |
| module Gem | |
| extend self | |
| def use(name, options={}) | |
| require_path = options[:require] || name | |
| begin | |
| require require_path | |
| rescue LoadError | |
| system "gem install #{name}" |
This file contains hidden or 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
| <% flash.each do |type, message| %> | |
| <div class="alert <%= bootstrap_class_for(type) %> fade in"> | |
| <button class="close" data-dismiss="alert">×</button> | |
| <%= message %> | |
| </div> | |
| <% end %> |
This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.
# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
This file contains hidden or 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
| class TodoList < Array | |
| def self.load(file) | |
| # read the file, create a list, create items, add them to the list, return the list | |
| list = TodoList.new | |
| File.read(file).each_line do |line| | |
| list << line.chomp | |
| end | |
| list | |
| end |