123
 123

Sat 17 January, 2009

Click here to bookmark this link.Channel Image10:56 合宿4日目» Matzにっき
中田先生もいらっしゃることもあって、学生時代の思い出が 話題になる機会が何度かあったが、 卒論でプログラミング言語を設計 インテルのインターンで文字コード周りと格闘 など、結局今やってることとあんまり変わらないことに自分で驚く。 20年もやってりゃそれなりの成果も出るか。 三つ子の魂百まで、というか、病膏肓に入る、というか。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image07:54 Rails技巧系列:为什么不要使用函数puts?» 天天红玉世界
为什么不要使用函数puts?
使用函数puts与函数logger.info的区别
  # GET /users/1
# GET /users/1.xml
def show
@user = User.find(params[:id])
#函数puts
puts @user.to_yaml
# 函数logger.info
logger.info("#{Time.now} - #{@user.to_yaml}")
#
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @user }
end
end
  • 说明
    • 很多人喜欢使用函数puts,获取调试信息。这个问题类似于Java语言人们使用System.out.println(),获取输出内容。一旦使用了函数puts,无法保证网络服务器对于源代码输出信息的顺序!参见上图作了标记的两行输出记录。尽管在上面代码中,函数puts和logger.info是一前一后,但是输出信息的顺序与代码的顺序是不同的。
    • 建议放弃使用函数puts,获取输出信息的方法。
    • Rails框架已经集成了logger软件包!
    • 什么是logger? What is logger?

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image03:56 Mt. West RubyConf 2009 registration is open» James Britt - Code, Content, Caffiene

MountainWest RubyConf is on March 13-14, 2009 in Salt Lake City, UT and costs just $100.

That’s right, perhaps the most kick-ass RubyConf of the year cost only one. Hundred. Dollars.

Go now.

BTW, I’ll be speaking at the conference.

See the list of speakers here


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image00:50 This Week in Edge Rails» Riding Rails - home

January 10, 2009 -January 16, 2009

24 commits for edge Rails this week (with one patch ported over to the 2.2 branch as well). If you want a pre-release look at Rails 2.3, this is a fine time to install a copy of edge, if you’re not already there. It’s plenty stable enough for test sites, though there are a few rough patches yet.

Nested Transactions in Active Record

Several people contributed to a big patch that gives us nested transactions in Active Record, a much-requested feature. Now you can write code like this:


User.transaction do
    User.create(:username => 'Admin')
    User.transaction(:requires_new => true) do
      User.create(:username => 'Regular')
      raise ActiveRecord::Rollback
    end
  end

  User.find(:all)  # => Returns only Admin

Nested transactions let you rollback an inner transaction without affecting the state of the outer transaction. If you want a transaction to be nested, you must explicitly add the :requires_new option; otherwise, a nested transaction simply becomes part of the parent transaction (as it does currently on Rails 2.2). Under the covers, nested transactions are using savepoints, so they’re supported even on databases that don’t have true nested transactions. There is also a bit of magic going on to make these transactions play well with transactional fixtures during testing. commit

MemCacheStore Enhancements

Nahum Wild contributed some work that (inspired by his spandex_mem_cache_store plugin) that enhances the performance of Rails when using MemCacheStore. The basic idea is to keep a per-request local cache of requests sent to MemCacheStore, cutting down on unnecessary reads and leading to better site performance. commit

Making Active Record Callbacks behave

You may recall the spot in the Active Record documentation that says “If a before_* callback returns false, all the later callbacks and the associated action are cancelled.” What you may not know is that this is actually broken in the current version of Rails: if you cancel a before_update or before_create callback, the after_save callbacks still run. In Rails 2.3, this will behave the way that the documentation says it does. commit

Fractional seconds for TimeWithZone

The Time and TimeWithZone classes include an xmlschema method to return the time in an XML-friendly string. As of this week, TimeWithZone supports the same argument for specifying the number of digits in the fractional second part of the returned string that Time does:


>> Time.zone.now.xmlschema(6)
=> "2009-01-16T13:00:06.13653Z" 

commit

JSON Key Quoting

If you look up the spec on the “json.org” site, you’ll discover that all keys in a JSON structure must be strings, and they must be quoted with double quotes. As of this week, Rails does the right thing here, even with numeric keys. commit

Test Refactoring

Josh Peek spent some time refactoring various tests inside of Action Pack, including those for query string parsing, JSON parameter parsing, XML parameter parsing, multipart parameter parsing, and URL-encoded parameter parsing. While you won’t see any new functionality as a result of this work, it’s worth shining a spotlight on the often-thankless cleanup that keeps the Rails code in good shape.

Changes to Object#try

After some discussion, the semantics of Object#try have changed slightly: it now raises NoMethodError on private methods and always returns nil if the object is nil. commit


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image00:50 My Obama Inauguration Speech» Joey Gibson's Blog
I just found the Obama Inauguration Speech Generator through a link on Friendfeed. Basically it’s like Madlibs; you fill in adjectives, nouns, verbs, etc, and then those words get plugged into the story. Hilarity ensues. Or not. Mine turned out pretty good, I think. Barack Obama’s Inauguration Speech My fellow Americans, today is a hopeful day. You [...]
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Fri 16 January, 2009

Click here to bookmark this link.Channel Image05:20 Apple世界:Google正在走进Mac OS X» 天天红玉世界
Google正在走进Mac OS X
  • 说明:Google Quick Search Box
    • 与Mac OS X软件Spotlight类似的搜索工具
    • Google Quick Search Box不仅仅搜索本地信息,而且也可以搜索网络信息。

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:45 合宿3日目» Matzにっき
今日は作業日。昨日までの議論の結果を反映した 草案の新しい版を作る。 その間、私はコミットしたり、バグを取ったり。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:45 合宿2日目» Matzにっき
昨日同様に密度の高いレビューと議論。 もうこれでRubyの仕様は隅から隅までわかるよ。 って、今までわかってなかったんかい。 で、重箱の隅に変な仕様を見つけるたびに「ごめんなさい」とつぶやくのであった。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:45 Visor Edge» Matzにっき
愛用のPDAはいまだにHandspringのVisor Edge (Palm Pilot互換機)だったりするのだが、 今日になって調子が悪くなった。画面がノイズ状の表示になり反応がない。リセットも効かない。 うちには予備機として全部で4台のVisor Edgeがあるのだが、 これで3台ダメになった計算になる。あれ、2台だったか。 そろそろ在庫が不安になってきたので、 乗り換えを考えるべきか。 残りをだましだまし使う iPhoneにする iPod touchにする (たとえばソフトバンクの)スマートフォンにする BlackBerry とはいえ、別にスマートフォン要らないし。メールやネ..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image04:45 ACM Professional» Matzにっき
中田先生から「ACM Professional会員ならSafariの本が追加料金なしで読めるよ」と 教えていただく。先生は「The Programming Language Ruby (Flanagan本)」はそうやって読まれたのだそうで。 Safari全部ではないようだが、かなりの数の本が読める。 ACM入会以来8年近くなるが、そんなことは知らなかった。 すごい損してた気がする。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image00:58 Rails Documentation Projects» Riding Rails - home

With the recent revitalization of the Rails Wiki project, we’re seeing people ask how the various pieces of Rails documentation fit together. I thought it might be useful to lay out how the Rails Activists see everything fitting together as we move forward.

Rails is a large and mature framework, with a lot of functionality – and with the Merb merger, there will be even more to learn in the future. As such, it presents challenges for developers at all levels trying to understand how to use Rails effectively. There are many resources to help with the learning process, including commercial books and magazines, screencasts and podcasts, tutorials, blog entries, and training courses. But there is also a series of official written documentation projects.

There’s no such thing as one-size-fits-all documentation. Different developers bring different skill sets, backgrounds, and levels of professional maturity to learning Rails. There are at least four levels of official documentation, overlapping but serving different needs:

  • Inline documentation, with comments within the code itself (that you can see by running rake doc:rails within any Rails project).
  • Rails Guides
  • Rails Book (a new project for Rails 3.0)
  • Rails wiki

Although at first glance there appears to be substantial overlap, our feeling is that the each of these projects occupies a distinct (and valuable) niche.

RDoc

  • Provides immediate help for syntax questions
  • Maintained by the actual core developers and generally up-to-date

Rails Guides:

  • Provides focused “how to” help for particular problem domains
  • Target the mid-level developer, possibly with Rails experience
  • Have a large amount of existing high-quality material
  • Are already being continuously revised to track changes in edge Rails
  • Can include version-specific tutorial code samples
  • Can be delivered as a part of core Rails to provide “guidance at your fingertips” for new developers

Rails Book:

  • Provides high-level architectural guidance and overview of how the pieces fit together
  • Digs into the philosophy of the “Rails Ways”, so readers can understand why the framework works the way it does
  • Targets the developer new to Rails or those wanting to go from the “trees” to the “forest” view
  • Offers help in conceptualizing Rails and choosing between alternative modules (ORMs, routing DSLs, etc.) in the Rails 3 timeframe
  • Can draw on the Merb experience in simultaneous translation and pulling in contributions from many writers
  • Largely version independent
  • Gives a structured path through end-to-end documentation in a way that standalone Guides do not

Rails Wiki

  • Community-driven documentation that can respond rapidly to new software and new questions
  • A good repository to links to external information
  • Potentially a showcase for Rails itself in the underlying software
  • A place to put the accumulated community knowledge, even the pieces that are not often needed

It’s important to note that we don’t see these four projects as entirely separate efforts that have no interaction with one another. In particular, it seems likely that the Book will link to the Guides for those seeking additional detail, while the Guides will link to the Book for those seeking additional high-level guidance. We also anticipate that the wiki will point readers to both Guides and Book (as well as to other sources of information).

So, what can you do to get involved? If you’re a writer, translator, or editor, any of these documentation projects would love to have your help:

  • To contribute to the RDoc, write a Rails patch with good comments or check out the docrails project.
  • To help the Rails Guides, get in touch with Pratik Naik or Mike Gunderloy, or drop by the #docrails channel on IRC freenode.
  • To get involved with the Rails Book, contact Matt Aimonetti.
  • To add to the Rails Wiki, join the rubyonrails-wiki group.

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Thu 15 January, 2009

Click here to bookmark this link.Channel Image15:49 Ruby標準規格合宿» Matzにっき
合宿と言っても夜はやらないのはいつも通り。 Ruby標準規格原案作成をドライブするため、 WG委員長の中田育男先生にわざわざ松江まで来ていただいて 現時点での草案をレビュー。 わたしよりも「できのよい」人たちがメンバーなので ばりばりと進む。っていうか、まる一日昼食以外はほぼ休憩なしってのは どんだけパワフルなんだと。 しかし、わかっていたことではあるけれど、 Rubyってのは標準規格とかに向いてない言語だとつくづく思う。 こうして規格文書としてまとめていて感じるのは、 重箱の隅のような部分で「やめときゃよかった」..
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image09:21 Rubyist Pat Eyler Interviews Ruby Best Practises Author Gregory Brown» O'Reilly News:Ruby
Ruby aficionado Pat Eyler is conducting a series of wonderful interviews with Gregory Brown, the author of O'Reilly's upcoming Ruby Best Practices (currently in Rough Cuts).
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image09:21 The Braithwaite Effect» James Britt - Code, Content, Caffiene

I’m amazed that Raganwald would have any trouble scoring work. Or the kind of work he would enjoy (since, in the broad view, its easy to get a job, less easy to get a job you enjoy)

Seriously, what are people thinking? “Oh, he seems smart, but he doesn’t have the .Net chops with BizTalk experience we need.”

I’ve been fortunate the work with many smart people. Most of them were good at what they did, i.e., their “real” job, but some also had a knack for helping others get better at their job, too.

It wasn’t just a matter of straight-up mentoring; these people were able to offer a different point of view, ask the odd question, get people thinking about new things in new ways. It kept things fresh, made the work more fun. It’s one thing to tell people stuff, it’s another to get people to want to know and understand more stuff.

Alan Kay said, “At PARC we had a slogan: ‘Point of view is worth 80 IQ points.’ “

Smart, interesting people like Reg should be hired simply to go wander around a company, strike up conversations, and ease people into a different point of view. It would make the whole company smarter.


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Wed 14 January, 2009

Click here to bookmark this link.Channel Image23:38 Project 365: Days 1 - 7» Joey Gibson's Blog
I heard about Project 365 some time last year, but when it came back up after New Year’s Day, I decided to take a whack at it. The deal is that you’re supposed to take a picture, of anything, every day. Further, you can upload it somewhere, like Flickr, to share it with the world. [...]
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image23:38 Netflix And Great Customer Service» Joey Gibson's Blog
I mentioned back in December how much I liked my Netflix player. I still do, but last week I ran into a problem. I have finally caught up with the rest of the world and realized what a great show Heroes is, and I’m happily working my way through season one. Everything had been going [...]
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image23:38 Neko Case And Anti- Records Give To Charity» Joey Gibson's Blog
I don’t usually believe it when I see emails or blog postings saying that for everyone who posts/forwards this email/blog posting that Company X will donate $Y to Charity Z. But this one is for real. The lovely Neko Case, and Anti- records are giving $5 to Best Friends Animal Society every time someone posts her new [...]
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image17:20 雪の日» Matzにっき
夜の間にまた10cmくらい雪が積もってる。 朝から雪かき。2日連続なんてことはめったにないのにな。 で、教会に行く。雪のせいか人が少ない気がする。 集会終了後も、あっという間に教会が空になって寂しいくらい。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image17:20 雪かき» Matzにっき
夜の間にまた10cmくらい雪が積もってる。 3日連続なんてこっちに来てからはじめてかも。 雪かきのおかげであちこち筋肉痛やら腰痛やら。 もうお年寄りかしら。 風邪をひいたのか、声が低くなって困る。 家族と会話していても、「麒麟の人が話してるみたい」と笑われ、 「おかしいからちょっと黙ってて」と言われる始末。 ぐすん。 お昼はお好み焼き(+たこ焼き)。おいしかった。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image15:08 自制水果笔电支架» Suave's Blog
根据一篇很有才的blog,自制了一个笔电支架,本来想买的,这下省了不少 :) 无线键盘是淘宝上弄的,工包350,现在支付宝付费的时候选网银付还可以打折,最后花了333。这个键盘和笔电上...
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image10:35 Activist Status & Wiki Project» Riding Rails - home

So last week we were announced as activists, but what have we been doing? I’m sure there are some wondering, so here is our first report. Read on for news of our first big project, what each of us is working on, and how you can help today.

Firstly, we’ve been very pleased by the number of people who are actively interested in helping us improve the Rails ecosystem. Your input through UserVoice, the Activism Mailing List, Twitter, e-mail, and instant messages has been inspiring (and a bit overwhelming!). We listened, and one of the most popular requests revolved around the Wiki.

The Rails Wiki Reform

The Rails Wiki is in poor shape, for many reasons and it’s not one person’s fault. The good news is that our first major project is going to be revitalizing the wiki. To get our engines started, we’re forming a dedicated team to shape it into something the Rails community can be proud of.

If you’re interested in helping, simply join the Ruby on Rails Wiki Google Group. After you join, you’ll find a note on the group from Matt Aimonetti with more details.

What we’re doing

All of the Activists are busy with projects that fall under the general heading of “helping Rails.” Here’s a sampling of what we’re up to:

Gregg Pollack
  • Producing the Rails Envy Podcast.
  • Working on a free “Scaling Rails” screencast series. Hoping to release close to the end of the month.
  • Launching year 2 of the Ruby Hero Awards shortly.
  • Promoting Ruby/Rails at OOP 2009 in Germany, then Acts As Conference in Orlando, FL.
Matt Aimonetti
  • Putting together Case Studies.
  • Investigating the current state of the Rails wiki and possibilities.
  • Working on the Merb book (yes, Merb projects help Rails too).
Ryan Bates
  • Doing Railscasts.com.
  • Creating a Screencast application for aggregating Rails screencasts all into one feed on the RubyOnRails.org website.
Mike Gunderloy
  • Covering This Week in Edge Rails on the official Rails blog.
  • Working with Chad Woolley to improve the Rails CI server, including builds across multiple versions of Ruby and JRuby.
  • Providing user support via #rubyonrails and #rails-activism on IRC freenode.
  • Posting daily link roundups pointing to things of interest to Rails developers.

Other Stuff You Can Do

If you’re asking “What can I do today to help Ruby on Rails?”, aside from joining one of our mailing lists and collaborating with us, here are a few items that come to mind:

  1. Contact Matt Aimonetti if you think you have a good Case Study on Rails.
  2. Go to RubyForum or IRC and help new Rails developers.
  3. Go to your local Ruby Users Group, or start one.
  4. Go to a Rails related conference.
  5. The next time you tackle a hard problem in your rails app, write a blog entry.
  6. Take one of your Rails Libraries/Modules, and turn it into a Gem or Plugin.
  7. If you’re surfing Rails blog articles and you find one that is outdated leave a comment or let the author know the content should be updated or marked as obsolete.

Flickr Credits: Big Red Button Okinawa-Churaumi Aquarium marbles


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image10:35 大雪» Matzにっき
冷えると思ったら大雪だった。 雪かきをする。 うちは坂の上にあるので雪かきしないと車が出入りできないからだ。 くたびれた。
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image00:57 The Demi-Entendre Site» Lovable Lyle
And now, a quick plug for David Black’s collection of demi-entendres: A demi-entendre is an expression or phrase that comes from accidentally combining two common expressions… For example, when you combine Give us something to hang our hats on. with Give us something to sink our teeth into. you get “Give us something to hang our teeth on.” (Atlanta advertising agency director [...]
add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Tue 13 January, 2009

Click here to bookmark this link.Channel Image23:33 非“敏捷”咨询(二)» 梦想风暴
客户公司原本是一个采用重型过程的公司,所以,谈起敏捷,总有不同的人问我们一个类似的问题,能不能告诉我一步一步怎么做,我照着做就可以了。

事实上,他们已经有了一些照着做的东西,比如,单元测试。有人和我们说,单元测试挺好,有一定价值,就是写起来太麻烦。为了覆盖到代码所有的分支,他不得不在单元测试里写下大量的代码,当时,我刚刚了解到,几百行的函数对他们而言,是小函数。

和我们合作的就是一个多多少少有些先行经验的项目组,当我们开始用我们的方式编写代码时,他们才意识到之所以测试难写,因为他们是照着原有的思路写代码,即便测试先于代码写出来。

另一个例子来自于Story分解。分析需求的时侯,客户的人告诉我们,他们已经开始将需求分解为Story了。当我们开始讨论需求的时侯,却发现这些Story并没有考虑过真正的价值,也没有考虑过开发和测试人员。

敏捷,似乎已经由许多人心目中的“奢侈品”变成了“消费品”。在各种各样的新闻、论坛和邮件列表,总是不断的看到有人说自己已经“敏捷”了。随之而来的,就是一些人以“过来人”的身份告诉后来者,敏捷不过如此。

敏捷看上去很简单,就是一大堆的敏捷实践,但真正有价值的部份却是敏捷的思想。因为一个实践推行不下去就置疑敏捷的人大有人在,而这才是真正需要下功夫的地方。

比如在C/C++如何做TDD。单纯从单元测试的角度出发,用一些单元测试框架,可以做。但是用敏捷的思路去考虑这个问题,我们需要的不仅仅是能做,而且需要快速反馈,一些单元测试框架的问题就会暴露出来。另外,为了做TDD,我们就需要将我们的单元隔离开来,这时侯,却发现这个单元的编译链接需要其他单元,或是过于庞大的头文件导致编译时间增长等等,那需要的就是一些设计和实现上的调整。

其实,从我们和客户的交流来看,即便没有真正的敏捷,而只是采纳一些敏捷实践,比如TDD、比如持续集成,对团队来说,都是有价值的,很多的问题不必等到最后才去发现,这就大大提高了产品的质量。

为什么很多人愿意倾向于那一些敏捷实践说事,说白了,因为它简单。扔下一句TDD不好做,容易,想办法把它做好,难!所以,我们做的是《非“敏捷”咨询》。




add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image07:15 网站推荐:最新技术和产品新闻网站APC» 天天红玉世界
Click here to bookmark this link.Channel Image01:27 Sesame Street – Crayo...» Projectionist

Sesame Street – Crayon Factory


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image01:27 A tremendous glimpse of the...» Projectionist
A tremendous glimpse of the obvious.

Josh Silver


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Click here to bookmark this link.Channel Image01:26 orogeny: The process of mou...» Projectionist
o•rog•e•ny
[aw-roj-uh-nee]noun
The process of mountain formation, especially by folding and faulting of the earth’s crust.

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Sun 11 January, 2009

Click here to bookmark this link.Channel Image10:54 Gems in a Jar. JRuby continues to rock» James Britt - Code, Content, Caffiene

Big props to Nick Sieger. His latest bit of super cool awesomeness is this :

As a result of some fruitful hacking at RubyConf 2008, I was able to modify JRuby so that gems can be loaded and used without having to unpack them. The feature became generally available with the 1.1.6 release last month. Gems in a jar!

add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl

Sat 10 January, 2009

Click here to bookmark this link.Channel Image01:10 This Week in Edge Rails» Riding Rails - home

January 3, 2009 -January 9, 2009

It was a pretty light week for the edge Rails tree: about 20 commits. We’re starting to see things coalesce for a 2.3 release, though there’s no official release date yet. Here’s some of the highlights of what’s been going on.

AssetTag Timestamp Caching

You’re likely familiar with Rails’ practice of adding timestamps to static asset paths as a “cache buster.” This helps ensure that stale copies of things like images and stylesheets don’t get served out of the user’s browser cache when you change them on the server. You can now modify this behavior with the cache_asset_timestamps configuration option for Action View. If you enable the cache, then Rails will calculate the timestamp once when it first serves an asset, and save that value. This means fewer (expensive) file system calls to serve static assets – but it also means that you can’t modify any of the assets while the server is running and expect the changes to get picked up by clients. commit

Object#tap Backport

Object#tap is an addition to Ruby 1.9 and 1.8.7 that is similar to the returning method that Rails has had for a while: it yields to a block, and then returns the object that was yielded. Rails now includes code to make this available to older versions of Ruby as well. commit

Rack Version Bump

During the week, the Rack project released version 0.9 and Rails was quick to respond – the required version of Rack for Rails is now 0.9. So, if you’re running on edge, it’s time to update your gems. commit

Continuous Integration Setup

If you’re interested in setting up your own continuous integration server to build the Rails source, the embedded instructions have been updated with the latest requirements and clarifications. Even if you want a CI server for something else, they’re worth looking at, as they’ll get you from zero to a running cc.rb instance very quickly. commit


add to del.icio.us add to del.icio.us. look up in del.icio.us.   add to furl.net add to furl
Sources