Skip to content

Instantly share code, notes, and snippets.

Avatar

Thorsten thorsteneckel

View GitHub Profile
@thorsteneckel
thorsteneckel / books_controller.rb
Last active Nov 10, 2015 — forked from cupakromer/books_controller.rb
Rails 4 Standard CRUD Controller
View books_controller.rb
# This is a fairly basic / bare controller which does only the basic CRUD.
class BooksController < ApplicationController
before_action :set_book, only: [:show, :edit, :update, :destroy]
def index
respond_with @books = Book.all
end
def show
respond_with @book
@thorsteneckel
thorsteneckel / snippets
Last active Mar 17, 2018
Disable all ruby snippets from Sublime 3
View snippets
# mac version
unzip -l /Applications/Sublime\ Text.app/Contents/MacOS/Packages/Ruby.sublime-package | grep '.sublime-snippet' | awk '{print $4}' | xargs -L 1 -I {} touch ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Ruby/{}
You can’t perform that action at this time.