Giter VIP home page Giter VIP logo

one_step_active_scaffold's Introduction

A really basic script to create a new rails 3 application using active_scaffold and a player and team model.
Afterwards you can just say rails s to start your application.

Please note that you need git up and running in your shell.
In addition your database setup needs to be up and running.

ruby one_step_activescaffold.rb -h

Usage: one_step_activescaffold [app_name] [js_lib] [database] [db_user] [db_password]
app_name   : name of your rails application ; default: howto
js_lib     : valid Values: ["prototype", "jquery"]; default: prototype
database   : valid values: ["sqlite3", "mysql", "postgresl", "oracle", "frontbase", "ibm_db"]; default: sqlite3
db_user    : username for your db; default: <db_specific>
db_password: pasword for your db user; default: ''

If you do not want to create a player and a team model, you can specify your own models in a 'model_setup.rb' file, which needs to be in the same directory as 'one_step_activescaffold.rb'.


Examples:
ruby one_step_activescaffold.rb

ruby one_step_activescaffold.rb my_new_app jquery mysql

ruby one_step_activescaffold.rb my_new_app jquery postgres john top_secret

model_setup.rb:
puts %x[rails g active_scaffold coach name:string]

one_step_active_scaffold's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

one_step_active_scaffold's Issues

documentation bug

Doc says:

Examples:
ruby one_step_activescaffold_app.rb

$ ruby one_step_activescaffold_app.rb as10 jquery sqlite3
ruby: No such file or directory -- one_step_activescaffold_app.rb (LoadError)
$ ls *rb
one_step_activescaffold.rb

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.