只显示主题贴

textmate有一个功能特别好用,在Textmate中 “Help”》“Enhanced use in terminal” > "create symbol"然后在 terminal 中就可以使用 “mate . ”来打开当前项目然后可以些一个 alaise alias ett='mate app config lib db public test vendor/plugins &'然后再“ett .”就可以打开只包含代码的项目
  • 进入论坛 Ruby
昨天在网上看到一个Rails开发技巧一览,看了觉得很有用,所以翻译了,贴在 Ruby on Rails 中文 Wiki http://wiki.rubyonrailscn.org上。转发在这里,希望对大家有帮助。 本列表整理自Massive List of Rails Development Tips * 将你的程序所用到的密码和API证书号保存在一个自定义的配置文件中。我使用一个YAML并沿用了database.yml类似的格式。 * 有需要的时候就使用常量。不要重复诸如你的客服邮件地址这类字符串,而是将它们保存在常量中(可以保存在environment.rb或者你自己的 ...
  • 进入论坛 Ruby
有一个插件可以解决这个问题 paginating_findhttp://cardboardrocket.com/pages/paginating_find
  • 进入论坛 Ruby
把 reset_cache 当作一个异步操作来用。这样虽然可能会牺牲页面的及时刷新率,但是保证了请求的响应率
reset_cache:重置缓存(这段不知道改怎么翻译了:reset_cache: Slow, uncached operations can sometimes queue up and wedge a site. Instead, issue cache resets on completion of a request, rather than expiring beforehand. That way, requests that continue to pile up will still use the cached copy until the rebuild is comple ...
rubyonrailscn.org
搜索本博客
博客分类
最近加入圈子
最新评论
评论排行榜