public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
~/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]

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.