Coder Social home page Coder Social logo

yeyong123 / rails_templates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rainly/rails_templates

0.0 2.0 0.0 64 KB

我对 Rails 默认模板的定制,下载放进 项目的 lib 目录

Home Page: http://huacnlee.com/blog/how-to-custom-scaffold-templates-in-rails3

rails_templates's Introduction

这个是我对 Rails 默认模板的定制,模板乃是个人喜好,不一定适合你,仅供查考。此模板用于帮助我们快速生成管理后台得 CRUD 功能。

需要得组件

安装

$ cd ~/Downloads
$ git clone git://github.com/huacnlee/rails_templates.git
$ cp -R rails_templates/* ~/you_rails_project/lib/

使用用法

你可以根据自己得喜好修改模板,然后用 Rails scaffold generator 生成

$ rails g scaffold Post title:string category_id:integer body:text
$ rails g scaffold admin/posts title:string category_id:integer body:text
$ rails g scaffold_controller admin/posts title:string category_id:integer body:text

Enjoy!

rails_templates's People

Contributors

huacnlee avatar

Watchers

 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.