Run rails new --help
to see all of the options you can use to create a new Rails application:
Output for Rails 8+
Usage:
rails COMMAND [options]
You must specify a command:
# just for this example to work | |
class BigCommerce | |
def woot(...) | |
puts "woot" | |
end | |
class System | |
def time(*args, **kwargs) | |
puts "time: #{args} #{kwargs}" | |
end |
#!/usr/bin/env bash | |
# Install_USB_Maker.sh | |
# Copyright (c) 2020 - 2025 Dayo Akanji | |
# - [email protected] | |
# Portions Copyright (c) Jeff Geerling | |
# - https://github.com/geerlingguy/macos-virtualbox-vm/blob/master/LICENSE | |
# | |
# MIT License |
Run rails new --help
to see all of the options you can use to create a new Rails application:
Output for Rails 8+
Usage:
rails COMMAND [options]
You must specify a command:
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
begin | |
require 'terminal-notifier' | |
module Jekyll | |
class Site | |
alias jekyll_process process | |
def process | |
jekyll_process | |
TerminalNotifier.notify("🍻 Jekyll rebuild finished") | |
rescue => e | |
TerminalNotifier.notify("💥 Jekyll rebuild failed: #{e.message}") |
{% comment %} | |
* | |
* This loop loops through a collection called `collection_name` | |
* and sorts it by the front matter variable `date` and than filters | |
* the collection with `reverse` in reverse order | |
* | |
* To make it work you first have to assign the data to a new string | |
* called `sorted`. | |
* | |
{% endcomment %} |
# -*- coding: utf-8 -*- | |
class EqualAttributesMatcher | |
def initialize(attrs) | |
@attrs = attrs | |
end | |
def matches?(model) | |
@model = model | |
@attrs.all? { |k,v| @model.send(k) == v } | |
end |
# Make gems available | |
require 'rubygems' if RUBY_VERSION <= '1.9.0' | |
# http://drnicutilities.rubyforge.org/map_by_method/ | |
require 'map_by_method' | |
# Dr Nic's gem inspired by | |
# http://redhanded.hobix.com/inspect/stickItInYourIrbrcMethodfinder.html | |
require 'what_methods' |