Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
~/projects/jruby ➔ mono jruby.exe -S rails -d mysql testapp
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
~/projects/jruby ➔ cd testapp
~/projects/jruby/testapp ➔ vi config/database.yml
~/projects/jruby/testapp ➔ alias ikruby="mono ~/projects/jruby/jruby.exe"
~/projects/jruby/testapp ➔ ikruby script/generate scaffold post title:string content:text
exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/posts
exists app/views/layouts/
exists test/functional/
exists test/unit/
create test/unit/helpers/
exists public/stylesheets/
create app/views/posts/index.html.erb
create app/views/posts/show.html.erb
create app/views/posts/new.html.erb
create app/views/posts/edit.html.erb
create app/views/layouts/posts.html.erb
create public/stylesheets/scaffold.css
create app/controllers/posts_controller.rb
create test/functional/posts_controller_test.rb
create app/helpers/posts_helper.rb
create test/unit/helpers/posts_helper_test.rb
route map.resources :posts
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/post.rb
create test/unit/post_test.rb
create test/fixtures/posts.yml
create db/migrate
create db/migrate/20090429120818_create_posts.rb
~/projects/jruby/testapp ➔ sudo /usr/local/mysql/bin/mysqladmin create testapp_development
Password:
~/projects/jruby/testapp ➔ ikruby -S rake db:migrate
(in /Users/headius/projects/jruby/testapp)
== CreatePosts: migrating ====================================================
-- create_table(:posts)
-> 0.1290s
-> 0 rows
== CreatePosts: migrated (0.1300s) ===========================================
~/projects/jruby/testapp ➔ ikruby script/server
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
SQL (3.0ms) SET SQL_AUTO_IS_NULL=0
Processing Rails::InfoController#properties (for 127.0.0.1 at 2009-04-29 12:34:07) [GET]
SQL (2.0ms) SELECT version FROM schema_migrations
Completed in 4972ms (View: 164, DB: 5) | 200 OK [http://localhost/rails/info/properties]
SQL (0.0ms) SET SQL_AUTO_IS_NULL=0
Processing PostsController#index (for 127.0.0.1 at 2009-04-29 12:34:40) [GET]
Post Load (0.0ms) SELECT * FROM `posts`
Rendering template within layouts/posts
Rendering posts/index
Completed in 8785ms (View: 5158, DB: 0) | 200 OK [http://localhost/posts]
SQL (0.0ms) SET SQL_AUTO_IS_NULL=0
Processing PostsController#new (for 127.0.0.1 at 2009-04-29 12:35:20) [GET]
Rendering template within layouts/posts
Rendering posts/new
Completed in 9207ms (View: 5444, DB: 0) | 200 OK [http://localhost/posts/new]
SQL (1.0ms) SET SQL_AUTO_IS_NULL=0
Processing PostsController#create (for 127.0.0.1 at 2009-04-29 12:35:56) [POST]
Parameters: {"authenticity_token"=>"k2gtOFMtnT7p0pnAYEjGS3KXjTvvnY5iUBA1qdQ0Yrc=", "post"=>{"title"=>"This is totally crazy", "content"=>"Why would such a thing be possible?"}, "commit"=>"Create"}
SQL (4.0ms) INSERT INTO `posts` (`title`, `content`, `created_at`, `updated_at`) VALUES('This is totally crazy', 'Why would such a thing be possible?', '2009-04-29 12:36:01', '2009-04-29 12:36:01')
Redirected to http://localhost:3000/posts/1
Completed in 10489ms (DB: 5) | 302 Found [http://localhost/posts]
SQL (1.0ms) SET SQL_AUTO_IS_NULL=0
Processing PostsController#show (for 127.0.0.1 at 2009-04-29 12:36:18) [GET]
Parameters: {"id"=>"1"}
Post Load (37.0ms) SELECT * FROM `posts` WHERE (`posts`.`id` = 1)
Rendering template within layouts/posts
Rendering posts/show
Completed in 5941ms (View: 2416, DB: 38) | 200 OK [http://localhost/posts/1]
SQL (0.0ms) SET SQL_AUTO_IS_NULL=0
Processing PostsController#index (for 127.0.0.1 at 2009-04-29 12:36:49) [GET]
Post Load (1.0ms) SELECT * FROM `posts`
Rendering template within layouts/posts
Rendering posts/index
Completed in 8151ms (View: 5539, DB: 1) | 200 OK [http://localhost/posts]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.