查看iptables状态: $ sudo /etc/rc.d/init.d/iptables status

iptables开机自动启动: $ sudo chkconfig iptables on $ sudo chkconfig iptables off

iptables关闭服务: $ sudo /etc/rc.d/init.d/iptables start $ sudo /etc/rc.d/init.d/iptables stop

在ActiveAdmin下自定义filter

rails4之后,之前的`model`里加入`search_methods :filter_name`的做法已经失效,需修改为:``` ruby class PromoCode (ids) { with_tags(ids) } def self. …… Continue reading

Mac上搭建Phonegap环境

Published on October 02, 2014

Rails遗留程序里最常犯的错误(译)

Published on July 23, 2014