Giter VIP home page Giter VIP logo

default_form's Introduction

default_form

为什么写这个gem

  • simple_form 太难定制;

  • 充分利用rails的form构建helper;

  • 符合rails习惯的定制;

如何使用

  1. default_form_for 替代 form_for

  2. 这个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'

default_form's People

Contributors

qinmingyuan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.