Skip to content

Instantly share code, notes, and snippets.

@TigerWolf
TigerWolf / minutes.markdown
Last active May 21, 2019 10:56 — forked from pat/minutes.markdown
Ruby Australia Special General Meeting - 12th May 2019

Attendees

  • Pat Allan
  • Mark Glossop
  • Rebecca Le
  • Celia Colquhoun King
  • Steven Webb
  • Nimeshe Madanayake
  • Vanessa Nimmo
  • Lauren Hennessy

Are you a sheep grazier? Whether you are new to the industry or have been on the land your whole life. You want the best quality wool and healthy sheep genetics.

Our technology can help.

Sheep farmers know improving wool quality is as simple as tracking good performing ewes.

Our App "thinking sheep" takes away the guesswork. takes advantage of electronic ear tags, helping you track sheep grazing habits, drinking frequency

@TigerWolf
TigerWolf / Contract Killer 3.md
Created September 6, 2016 05:12 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

# Ability Class
class AdminAbility
include CanCan::Ability
def initialize(user)
if user && user.admin?
can :access, :rails_admin
can :manage, :all
end

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one