Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
71Activity
0 of .
Results for:
No results containing your search query
P. 1
Rails Magazine - Issue #1: The Beginning

Rails Magazine - Issue #1: The Beginning

Ratings:

5.0

(3)
|Views: 3,123 |Likes:
Published by Rails Magazine
Table of Contents:

"Editorial" by Olimpiu Metiu
"Extending Rails Through Plugins" by John Yerhot
"Receiving E-Mail With Rails" by Jason Seifer
"Delegation in Ruby" by Khaled al Habache
"Subscription billing with Saasy" by Alex MacCaw
"Making the Switch From RSpec to Shoulda" by Dan Pickett
"Playing Hooky a.k.a. web hooks" by John Nunemaker
"Adhearsion" by Jason Goecke and Jay Phillips
"Rails Performance Analysis" by Terry Heath
"Getting Started with JRuby and JRuby on Rails" by Joshua Moore
"Artwork" by Huw Morgan
Table of Contents:

"Editorial" by Olimpiu Metiu
"Extending Rails Through Plugins" by John Yerhot
"Receiving E-Mail With Rails" by Jason Seifer
"Delegation in Ruby" by Khaled al Habache
"Subscription billing with Saasy" by Alex MacCaw
"Making the Switch From RSpec to Shoulda" by Dan Pickett
"Playing Hooky a.k.a. web hooks" by John Nunemaker
"Adhearsion" by Jason Goecke and Jay Phillips
"Rails Performance Analysis" by Terry Heath
"Getting Started with JRuby and JRuby on Rails" by Joshua Moore
"Artwork" by Huw Morgan

More info:

Published by: Rails Magazine on Feb 22, 2010
Copyright:Traditional Copyright: All rights reserved

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

03/30/2013

pdf

 
    2
Edtoral
by Olimpiu Metiu
Welome to the rt edton o Ral Magazne, the rt andonly 
 ree
magazne dedated to the Rby on Ral ommnty!I yo are ntereted n a qalty omplaton o tmely,relevant artle, wth edtoral overght and beatl layot,pleae hek ot the magazne reglarly or brbe onlneLong beore lanh, I wa mpreed wth the level o nteretand reeptvene Ral alway had a vbrant and dedated ommnty, and I hope Ral Magazne wll beome an appreatedreore or thoe lookng or qalty normaton — at the ametme provdng global expore to thoe ntereted n gettngpblhed009  hapng p to be a great year or Ral and t prattoner Contned adopton,  and 0 releae and a globalreeon hold make Rby and Ral more appealng than ever,a entreprener and enterpre alke are trvng to beomemore agle and oteetveRght now Ral Magazne  a one man how, bt expet that
 
to hange oon In at t  a great opportnty,  yo'd lke toget nvolved whle we're tartng Pleae pread the word abot, or get more nvolved a an athor, artt, ponor or partnerYor eedbak and nvolvement  mh appreated, o pleaeget n toh wth  at
editor@railsmagazine.com
Olimpiu Metiu
 a orontobaed arhtet andthe leader o the Emergent ehnologe grop atBell Canada H work nlde many o Canada'larget web te and ntranet portal A a longtme Ral enthat, he onded Ral Magazne aa way to gve bak to th amazng ommntyFollow me on wtter:
Connet on LnkedIn:
Discuss:
Community Pulse
We analyzed the repone tothe Ral/Merb merger onthe oal Ral blog Twordle how the relt
Content
 Editorial by Olimpiu Metiu2
 
Whle Ral  a ll tak web ramework, by degn Raldoe not am to nlde every poble eatre Tere are many reaon that the Ral Core eam wold hooe not to nlde aeatre  too ntable, too obre, or mply not needed n theore Ral dtrbton In at, there have been ntane whereeatre have been removed rom Ral and plaed nto a plgn!For example,
in_place_edit
and
auto_complete_for
were removedrom Ral n veron 0o help developer who are lookng to add, replae, ormody Ral' eatre et, Ral ha been blt wth a hghly extenble nratrtre Mot addton and modaton ome aplgn Whle many plgn extend one o the major lae nRal, lke
ActionView::Base
or
ActiveRecord::Base
, yo are reeto reate yor own lae or modle Moreover, plgn anhave ther own Rake ak and tet Eentally, plgn are el ontaned Ral pe lbrareOne o the bet way to e plgn  the ree ode yond yorel ng rom projet to projet Robby Rell ha anexellent example h team at Planet Argon ed n ther applaton, Flah Meage Condtor  Fndng that Ral' ah wanadeqate or ther applaton, they were rewrtng mh o trom applaton to applaton Te team reated a plgn thatadded helper to add meage, error, and note to ah anda new
render_flash_messages
method to render them n a vewBy ng Flah Meage Condtor n ther applaton, PlanetArgon ha an mproved ah, a ommon nterae, and n a very DRY ahonFor th artle, we wll ontrt a mple plgn that wlladd a qote method to or model Or goal  very mplentonalty
a = User.newa.quote=> "If it bleeds, we can kill it."
We wll reate a Rake tak to generate a YAML le wth orqote, load that YAML le and e the data or or qoteWhle th  a arly trval plgn, my am  not to teah yohow to wrte a large, omplex plgn, bt gve yo the tart yoneed Let get tarted!Ral provde  wth a generator or reatng plgn
script/generate plugin quote
T wll reate a bare plgn n yor
vendor/plugin
dretory wth the ollowng trtre:
init.rb
 Loaded pon Ral tartng More ofen than not, twll reqre yor plgn le n the lb dretory
install.rb
 Rn when yo ntall the plgn ng Ral'rpt/plgn ntall ommand
lib/
 Te lb dretory  atomatally added to Ral' loadpath Ually yor plgn ode wll rede here
MIT-LICENSE
 Yor plgn hold nlde a lene, MI orotherwe
Rakefile
 Te man Rake denton or yor plgn
README
 Yo plgn' readme A hort ynop o yorplgn, t age, and any other note wold go here
tasks/
 Any tom Rake tak an go here For or plgn,we wll reate one
test/
 Yor plgn' tet hold go here When tet are rnon a plgn, Ral  not loadedBeore we go any rther, we hold reate a plan or howexatly or qote plgn hold workFrt, we hold reate aRake tak whh reate or YAML le lled wth qote Aferor Rake tak  ompleted, we wll reate an ntrb le that wllreqre the or qoterb le n the lb dretory and load orqoteyml le nto an array o qote We wll reate a newModle,
Quote::ClassMethods
to hoe or new method, and addthoe method to
ActiveRecord::Base
a to be avalable n model
 
John Yerhot
lve n Northern Mnneotawth h we and dog where he ha beenwrtng Ral applaton or the K1edaton ytem n Mnneota Hemantan a blog at
 and an be reahed at
 john@yerhot.org 
Extendng Ral Trogh Plgn
by John Yerhot 
continued on page 15
 Extending Rails Trough Plugins by John Yerhot 3

Activity (71)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Masprema liked this
Luiz Felipe liked this
Marley Ferreira liked this
ghgrossman9677 liked this
ohheyjude liked this
Alvin Sugar liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->