Skip to content

Instantly share code, notes, and snippets.

View bobbus's full-sized avatar

Adrien Coquio bobbus

  • Freelance
  • France
View GitHub Profile
@mikepack
mikepack / dci-rest-creation.rb
Created January 26, 2012 20:50 — forked from justinwiley/dci-rest-creation.rb
DCI + Rails new and create
# ---role
module BookManager
def create_book(attrs)
self.books.create! attrs
end
def update_book(book_id,attrs)
book = self.books.find(book_id)
book.update_attributes attrs
@banister
banister / development.rb
Created April 27, 2011 14:21 — forked from MyArtChannel/development.rb
Use Pry as IRB replacement in rails 3 console
# Add this to the end of your development.rb and add
#
# gem 'pry'
#
# to your Gemfile and run bundle to install.
silence_warnings do
begin
require 'pry'
IRB = Pry