-
simple_form 太难定制;
-
充分利用rails的form构建helper;
-
符合rails习惯的定制;
-
用
default_form_for
替代form_for
-
这个gem的思路只是为每个form helper method 设置了默认值, 如果不需要默认值,直接覆盖即可.也可以在一个很简单的配置文件中关闭一些行为
config.on.wrapper_all = true
config.css.wrapper_all = 'inline field'
config.on.wrapper_input = false
config.css.wrapper_input = ''
config.on.wrapper_submit = false
config.css.wrapper_submit = ''
config.on.offset = true
config.css.offset = 'six wide field'