What?
An automatic installation script for the ExtJS scaffold generator plugin (demo keynotes)to get you up and running.
Why?
Rails' scaffolding gets you up an running lightning fast. ExtJS is a wonderful javascript desktop library. Let's marry them
How?
Run the following script - it will
- Create the rails application
- Install the ExtJS scaffolding plugin
- Download and install ExtJS for your application
- Generate two sample models - posts and purchases
- Setup the database
- Create links to the sample models on the application landing page
- Run the server
Have fun!
# Create the app
rails ext_scaffold_setup
cd ext_scaffold_setup
# Install the plugin and extjs
script/plugin install http://rug-b.rubyforge.org/svn/ext_scaffold
curl -O http://extjs.com/deploy/ext-2.0.2.zip
unzip -q ext-2.0.2.zip
rm ./ext-2.0.2.zip
mv ./ext-2.0.2 ./public/ext
# Generate some scaffolds - posts and purchases
./script/generate ext_scaffold post title:string body:text
./script/generate ext_scaffold purchase order_id:integer amount:decimal description:text
# Create the database for the models
rake db:migrate
# Create links to the models on the landing page
echo '<title>ExtJS Scaffold generator sample</title>echo '<style type="text/css" media="screen">a {text-decoration:none; color:#abc}</style><a href="http://www.blogger.com/posts">Posts</a> <a href="http://www.blogger.com/purchases">Purchases</a>' > ./public/index.html
# All set, run the server!
./script/server
Point your browser to http://localhost:3000, and you're good to go.





