基本赞同,但认为 rails 还真的是给有准备的开发者的,另外也有兴趣参与入门资料的制作
弄个组委吧,有兴趣有能力的参与下,一个人抗太辛苦了
程序员怎么可能知道,不是都呆在屋子里吗
好老婆啊,每天回家,老婆会说 code, coffee, or me?
非常好,正需要一个能兼容 github 语法的,而 mou 不是完全兼容。
妹子真不少啊
做自己喜欢做的事,太棒了
ruby 躺枪了吧
+1, 这规矩比 chiphell 低调多了,人家要求至少 100 天在线才能发言
总结得很好,至于“区分不同页面的特定代码”,我习惯这样做:
$('body#topics-show').each(function(){
var scope = $(this);
var foo;
});
这样能即能按元素存在执行相应的代码,也能减少全局变量的产生。
编辑器很赞
因为 rails 开发涉及的东西挺多的,我觉得能独立从头到尾独立开发(not just scaffold code, use git as repo)和部署(setup production server and using capistrano)一个 rails 应用,就算入行了吧
take care
区别在于 如果 Cpanel 不存在
class Cpanel::ApplicationController < ApplicationController
这个会出错
而
module Cpanel
class ApplicationController < ApplicationController
不会
前者在 rails 环境中,对文件路径有约定,必须是 cpanel/application_controoler.rb,后者无所谓,适合做补丁的场景。
希望 gitlab 成为 git 库管理中的 redmine 越做越成熟
这个问题的确会弄倒不少新手,2 年前也遇过,楼主可以参考:http://hi.baidu.com/rainchen/item/6c4de860f3da682768105bee
nice gem
sure @post.update_attributes prams[:post]
用 within("#id") { page.should have xxx }
用-m 参数,如 rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb
写个 unit test 吧,看得真心累
这个漏洞太恐怖了,只要是没升级或者没打补丁的 rails 项目绝对秒杀,可执行任意 ruby 代码 (包括 system),昨晚做完实验后吓出一身冷汗。
悲剧啊
以前 china unix 的 blog 就是用 xsl 做模板的
找个项目简单对比了下:
rvm-use-ruby-1.9.3-p194
rspec spec/models/
Finished in 45.81 seconds
70 examples, 0 failures, 2 pending
rvm-use-ruby-1.9.3-p327-falcon
rspec spec/models/
Finished in 32.36 seconds
70 examples, 0 failures, 2 pending
效果杠杠的!
强烈推荐一个神器 newrelic_rpm
好文,pickle 的确是好东西,对简单的 model 数据准备的确可以省很多 step,容易上瘾,复杂的数据准备还是需要用 factory girl 来提高重用