Rails 看不太懂注释,请问 simple_form 这个:default 是什么意思

evan · September 07, 2012 · Last by stc replied at September 07, 2012 · 2374 hits
config.wrappers :default, :class => :input,
   :hint_class => :field_with_hint, :error_class => :field_with_errors do |

好像随便改成:xxx 也一样

有没有 simple_form 的中文教程

wrapper 的名字,用 simple—form 时可以指定用哪个 wrapper,不指定的话默认就是 default wrapper. 用 rails 的话最好看英文,因为大都是开源的新东东,相关的中文资料很少。

You need to Sign in before reply, if you don't have an account, please Sign up first.