开发者

Different css style for each form using simple_form gem

Is it possible to have different classes for each sim开发者_开发知识库ple_form so you can apply different stylesheets??


You can specify class attributes using the html option, thus:

simple_form_for object, :html => {:class => "myform"} do |f|
end
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜