Skip to content

Instantly share code, notes, and snippets.

Thorsten thorsteneckel

Block or report user

Report or block thorsteneckel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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/{}
@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
You can’t perform that action at this time.