vhochstein / one_step_active_scaffold Goto Github PK
View Code? Open in Web Editor NEWOne Step Installer for setting up a Rails 3 application with activescaffold
One Step Installer for setting up a Rails 3 application with activescaffold
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]
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
Hello World,
one_step_activescaffold.rb is not working for me.
environment is ubuntu 10.10
first error among several:
active_scaffold_vho at /home/bikle611/.rvm/gems/ruby-1.9.2-p290/bundler/gems/active_scaffold-5e0208b94e1a did not have a valid gemspec.
screen dump:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.