Git Product home page Git Product logo

restful_rickets's Introduction

SUMMARY

restful_rickets provides a generator that creates an entire set of RESTful CRUD cycle for a resource with a slick interface resembling the javascript Ext library, but without using that framework. We use jQuuery instead. This generator approach is better than using a plugin such as ActiveScaffold or Hobo because our solution results in clean Rails files, whereas ActiveScaffold and Hobo modify Rails conventions. This makes our generator approach easier for Rails developers to work with โ€” no surprises.

INSTALLATION


#> ruby script/plugin install git://github.com/clr/restful_rickets.git
#> rake rickets:assets

USAGE

The lib will be picked up automatically when Rails loads. This plugin is a standard Rails generator, and works by invoking:


#> ruby script/generate ricket ModelName [attribute:type attribute:type ...]

See the example below for more details.

EXAMPLE

Click on the image for a live example:

I created the above application with just the following commands, copied from my bash history, using Rails v2.1:


rails ./rickets_demo
cd rickets_demo/
rake rails:freeze:edge
script/plugin install git://github.com/dchelimsky/rspec.git
script/plugin install git://github.com/dchelimsky/rspec-rails.git
script/generate rspec
script/plugin install git://github.com/mislav/will_paginate.git
script/plugin install git://github.com/aaronchi/jrails.git
script/plugin install git://github.com/clr/restful_rickets.git
rake rickets:assets
script/generate ricket Dog name:string breed_id:integer adult:boolean description:text
rake db:create
rake db:migrate
script/server

And then I can navigate to the running app at http://localhost:3000/dogs and add dogs.

Jake edited this file.
And again and again

restful_rickets's People

Contributors

clr avatar

Stargazers

Jacob Llamas avatar

Watchers

Jacob Llamas 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.