Skip to content

Instantly share code, notes, and snippets.


Thorsten thorsteneckel

View GitHub Profile
thorsteneckel / snippets
Last active Mar 17, 2018
Disable all ruby snippets from Sublime 3
View snippets
# mac version
unzip -l /Applications/Sublime\ | grep '.sublime-snippet' | awk '{print $4}' | xargs -L 1 -I {} touch ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Ruby/{}
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
def show
respond_with @book
You can’t perform that action at this time.