wtf we up 2

postd by luke
on thursday... may 22

WTF WE
WTF WE
WTF WE
WTF WE
WTF WE
WTF WE
WTF WE
WTF WE
WTF WE

my stak uv bookz 4 tumblon.



published= mms2r peepcode n advanced railz recipez

postd by luke
on friday... may 16

two bookz that i wurked on r now shippin!!??!!

EATIN UR HTML
EATIN UR HTML
EATIN UR HTML
EATIN UR HTML
EATIN UR HTML
EATIN UR HTML
EATIN UR HTML
EATIN UR HTML
EATIN UR HTML
advanced railz recipez iz now available in dead-tree form. i got my copy last week... n it quiet useful. my recipe iz on processin email wit daemon usin fetcha. chek out recipe 46 on page 257. jon also wrote recipe bout background processin wit railz... which he wil b speakin bout at railsconf. i don’t get dime frm salez uv thiz book... but autographed copiez r available 4 modes fee. ;-)

mms2r= makin email useful iz now available frm peepcode. i wurked on thiz wit creator uv mms2r... mike mondragon n wit helpful editin uv geoffrey grosenbach. thiz 60 page pdf iz most comprehensiv documentation available on creatin ruby application that interact wit email... n iz onli $$$9. so buy copy... n buy copy 4 ur friend!!??!!



minnebar 2008

postd by luke
on thursday... may 08

minnebar logo

minnebar – 1 uv larges barcamp in world – iz bein held thiz saturday at universitee uv minnesota.

several folkz frm rail spikez/slantwise/tumblon orbit wil b presentin.

me??! i’ll b helpin run thin n maybe givin demo.

there 360+ people signed up alreddy. if u in area... u should definiteli come. it goin 2 b awesum.



railz get more mature

postd by luke
on friday... may 02

railz 2.1 iz rite around corna. i been followin new featurez in edge railz n eagerli lookin forward 2 thiz release. railz 2.1 includez numba uv featurez that wil make developa’ livez easier. here few uv my favoritez.

necessary directoriez creatd if they don’t exist

neitha mercurial nor git trak emptee directoriez. thiz iz pain wit railz... coz u has 2 create file in log directory 2 make sure it get creatd when u chek out code... otherwise railz not start. thiz iz no longa needed... coz railz wil create necessary directoriez if they don’t exist.

tiem zone support

tiem zonez r huge pain in any application... in any language coz they r just plain confusin. but ya gotta do it. in railz... solution used 2 b usin tztime n tzinfotimezone pluginz. railz 2.1 add support 4 trackin tiem object wit their tiem zone. thiz iz goin 2 make everyonez’ livez lot easier. chek out geoff buesin in-depth tutorial.

parshl updatez n “dirtee” trackin

two featurez that i knew n loved in our hoem-brew orm frm my forma life as java developa has made it in2 railz.

wit dirtee object u can know if u need 2 persist object... n which attributez has changed... n wtf attribute previous value wuz. thiz wil b grate 4 usa messagez n validationz!!??!!

in railz 2.1... activerecord can update onli attributez which has changed. thiz can (sumtimez) put ur object in2 inconsistent state... but parshl updatez improve performance... especialli when u has big txt or blob attributez that haven’t changed. use optimistic lockin 2 prevent usa frm stompin on each otha’ changez.

timestamped migrationz

wit all thiz distributd scm goin on... classic problem uv messed up migrationz get way worse. i talked bout solutionz 2 thiz in my talk at acts_as_conference... 1 uv which wuz timestamped migrationz. timestamped migrationz allow interleaved migrationz. as long as those migrationz don’t conflict wit each otha... they can b applied in any orda. thiz haz been added 2 railz. nice!!??!!

betta gem dependency n unpackin

i iz big fan uv vendor everythin approach 2 gemz coz i got burned way 2 many timez by missin gemz.

but it don’t always wurk (4 example... gemz which must b nativeli compiled r problem)... n u has 2 install 1 uv various vendor everythin pluginz—n everyone seemz 2 use different 1. in railz 2.1... gem unpackin iz built in wit rake gemz=unpak gem=gemname. (more info)

n 4 those gemz that don’t wurk... u can list them as dependency. ur app wil fail 2 start if gem iz not installed. fail earli... fail often!!??!!

txt helpa usable outside view

u can now use helpa without includin them in2 ur class. hurray!!??!!



rubyfringe keep rollin

postd by luke
on thursday... may 01

FLUFFI TIEM?
FLUFFI TIEM?
FLUFFI TIEM?
FLUFFI TIEM?
FLUFFI TIEM?
FLUFFI TIEM?
FLUFFI TIEM?
FLUFFI TIEM?
FLUFFI TIEM?
rubyfringe iz shapin up 2 b prettee kik-ass event. besidez tonz uv grate speaka (present company excluded)... they r havin all-inclusiv partiez every nite... n no lame sponsor 2 dilute signal 2 noise ratio. keepin attendance capped at 150 also ensurez awesumness... coz everyone wil get chance 2 meet everyone else.

it also onli conference out there that i know uv that haz activitiez 4 ur non-technical girlfriend/boyfriend/wife/husband/whateva. that iz such grate idea.

juli 18-20 in toronto... ontario (aka accordion citee). registration end june 11. get on it.



quik tip= store_location wit subdomainz

postd by jon
on thursday... may 01

both restful_authentication n olda acts_as_authenticatd has handy method called store_location. thiz method storez url in session variable 4 future reference. obvious use case involvez login. 4 example... if u browsin product anonymousli n want 2 wriet review... u’ll need 2 sine in first. so if u clik link on that product page that requirez u 2 b logged in... n thiz send u through login process... u’ll idealli want 2 b returned rite bak 2 where u wuz before u logged in. store_location enablez thiz... along wit redirect_back_or_default()... also provided by rik olson authentication pluginz.

u store location like thiz=

1 2 3 4 5 6 7
def private_action unless logged_in??! store_location redirect_to login_path end end