More than 1,000 Rby on Ral developer rom all over theUS and ret o the world ame to La Vega th year to drnk,gamble, relax by the pool and – oaonally – learn abot theapet o Rby, Ral and everythng related; rom the experto the ommnty. Sne the rt onerene n Chago n 2006,the poplarty and e o Ral ha jt grown, and wth a wdely attended onerene n La Vega t hold be ae to ay thatRal ha gone mantream and beyond.Tat’ not a bad thng, however. Wth ve trak, the ele-ton and dverty o the talk tnnng wth top that rangerom n-depth tde o alng and deployment tratege tomal pattern or programmer. Speakng o m, RalCon alo eatre Brd o Feather eon, and one o thee wa a
3-hour jam session with Rails developers
who had broghtther ntrment.
David Heinemeier Hansson
opened RalCon wth hmh antpated keynote on Ral 3. He tarted ot, however,wth lookng bak n tme on the veyear Ral ha been open ore,evolvng arond mortal wond,whh, aordng to rrondngrt hold have taken Ral down,a long tme ago.
“Rails isn’t enter-prise ready“
ha been a rerrngomplant abot the ramework, andwhle Davd’ ntal reaton wato ght or h tandpont, he laterrealzed that thng jt need tmeto nk n. Ral not that mhderent today rom what t wa 5year ago, bt a lot o “enterprey”people are omng nto Ral now,mply beae t mh more wdely aepted and ed today.Another example o a mortalwond wa the varo lone o Ral n other langage, that wold make Ral tel rrelevant.Tey all tred to nd the eene o Ral, bt no h thngext. Ral a phloophy and wde nmber o nqe detalthat play extremely well together. Swth-bak, h a Derek Slver o CD Baby wthed bak to PHP, hold have been yetanother mortal wond. Ten o ore, the pertent lam thatRal an’t ale, whh mght have been tre n the early yearo Ral, bt whh now olved and proved wrong n o many derent way today.Davd went on to d the pomng veron o Ral.
nRails 3, a competing Ruby ramework, Merb, will be mergedin.
Sne Merb doe many thng very derently rom Ral,th mean that everythng por don n Ral 3.
Tere areno holy cows
, bt the new veronwon’t olve everyone’ problem e-ther. Te phloophy o Ral 3 anbe derbed wth logan o BrgerKng:
Have it your way
. I yoorder a Whopper at Brger Kng,yo wll get a Whopper – no qe-ton aked – and t wll probably be everythng yo expeted. I yodon’t lke pkle, yo an ak toget a Whopper wthot pkle – bt yo wll have to do ome-thng atvely to avod pkle. Jt beae yo don’t lke pkle,holdn’t mean we hold take pkle ot o all Whopper. It’ ane metaphor, and t goe hand n hand wth the amo logano onventon over ongraton:
Rails 3 will still work out o the box and have standard stack that will be great, but evenmore than today, people will have the ability to change andadopt Rails to their needs
.Te reator o Rby o Ral went on to derbng ome thehange n Ral 3.
Routing will be both aster and more con-gurable
. Alo, the rotng API wll be treamlned to be evenmore ompat and expreve than today.
Protection rom XX(Cross-ite cripting) will be reversed so to speak
. oday, yohave to remember to e the hmanze method – h() or hort– to get all nae data yo otpt eaped, bt n the tre thwll be the dealt. A <%= … %> blok wll be hmanzed, whle<%=raw … %> wll work a prevoly, wthot any eapng.Helper wll atomatally e the html_ae! method, whhmark the HML they generate a ae, o t won’t be eaped.Another nteretng hange that
than today. No more onlk handler generated by the Ral helper, and no more explt tyngto Prototype and Srptaolo. Intead,
Rails 3 will use thedata attributes dened in HML 5
, o that e.g. th helper all:
<%= link_to “Delete”, @comment, :method => :delete %>
- wll generate th HML:
<a href=”/comments/1” data-remote=”true” data-
RalCon 2009 Rondp – Have t yor way...
by Caser Fabriciu