27 Feb '12, 1am

ASCIIcasts - “Episode 135 - Making a Gem”:

ASCIIcasts - “Episode 135 - Making a Gem”:

Back in episode 33 [ watch , read ], we made a plugin for Rails. A more popular option for extending Rails’ functionality now is to make a gem, and that’s what we’re going to do in this episode. Let’s say that we’d like to be able to generate a unique token for an ActiveRecord model. Given a model with a token column, e.g. the Recipe model below, we want to be able to call a class method called uniquify that will set up a before_create callback so that when we create a new Recipe it automatically generates a random token and ensures that it is unique in the database. class Recipe < ActiveRecord::Base uniquify :token end Creating a Gem Ruby gems can be made from scratch, but this involves a lot of work. An easier way is to use another gem to help create ours. There are several of these including hoe , newgem , bones , gemhub and echoe . Most of them provide generators that ...

Full article: http://asciicasts.com/episodes/135-making-a-gem

Tweets

New gem release: memcached (1.4.0)

rubygems.org 26 Feb '12, 8pm

memcached 1.4.0 An interface to the libmemcached C client. install gem install memcached Download Subscribe Stats Authors ...

gem install kendoui-rails

rubygems.org 28 Feb '12, 2am

kendoui-rails 0.0.5 Adds GPLv3 Portions of Kendo UI (http://kendoui.com) to javascripts and styles folders install gem ins...

Episode #250 - February 28th, 2012

ruby5.envylabs.com 28 Feb '12, 2pm

February 24th, 2012 Gem authoring, Humongous mongodb server tools, celluloid and reel, a hot new specjour, custom rails co...

@infinityrobot I've done an episode on Spree wh...

railscasts.com 27 Feb '12, 5pm

Spree allows you to quickly turn a Rails project into a full eCommerce application. Here I show how to set it up and confi...

5 MORE Things to Start Making at Home | Care2 Healthy Living

5 MORE Things to Start Making at Home | Care2 H...

care2.com 28 Feb '12, 3pm

I recently posted the article 5 Things to Start Making at Home (which included resources to help you make handsoap, compos...

Events - Htein Lin: The Triple Gem - 15-26 Feb ...

timeoutsingapore.com 26 Feb '12, 12pm

This specially commissioned installation focuses on the Burmese artist’s Buddhist faith. Part of the M1 Singapore Fringe F...

This SN'EADS COMIC kinda seems like the #Nike #GalaxyFoam situation doesn't it?

This SN'EADS COMIC kinda seems like the #Nike #...

theshoegame.com 28 Feb '12, 12am

OKKK! SN’EADS by R E E is back with a new episode called “The Camp-Out”. Camping for sneakers has become extremely popular...

Gemfile(5) - A format for describing gem depend...

gembundler.com 06 Mar '12, 5pm

# setup adds gems to Ruby's load path Bundler.setup # defaults to all groups require "bundler/setup" # same as Bundler.set...

Video // Heir Jordan Legacy - Season 1, Episode...

solecollector.com 29 Feb '12, 4am

[quote="Ryan.T."][quote="kix1oh"][quote="Nike23hog"]i wonder if they have to wait inline [/quote] na no way lol i remember...

Highlights Of The YouTube Creator Playbook Version 2 – The Reel Web Episode 28

Highlights Of The YouTube Creator Playbook Vers...

reelseo.com 28 Feb '12, 4pm

Adobe announces Primetime, which seems to be their response to mobile video and the discontinuation of Flash for mobile, b...

Top Ruby Article: Teaching The Robots To Sing: Episode 2 (TDD With Jasmine-Node):

Top Ruby Article: Teaching The Robots To Sing: ...

gilesbowkett.blogspot.com 25 Feb '12, 12am

is a gentle introduction to command-line TDD in JavaScript. You can see it here in Flash format: You can also download it:...

get these

23isback.com 04 Mar '12, 10pm

Most popular vurl today? Ruby5 - Episode #251 -...

ruby5.envylabs.com 02 Mar '12, 3pm

February 28th, 2012 In this episode we do the robo boogie all while discussing REE end of life, preparing your app for Rai...

If you missed us on last nights' episode of Cha...

video.xin.msn.com 08 Mar '12, 5am

Sekinchan rice supplier, Luo Chang He, has two sons. His elder son, Shi Cong is a prideful and ambitious young man who fig...

Out & About A little gem tucked away in a corner of Ann…

Out & About A little gem tucked away in a corne...

clapbangkiss.xanga.com 02 Mar '12, 7am

A little gem tucked away in a corner of Ann Siang Hill, K Ki is a Japanese patisserie cake shop cafe and cute retail space...