Arie Kusuma Atmaja wrote:
> Inas Luthfi wrote:
>> sayang sekali MWN belum support dgn rails, padahal untuk masalah
>> pembayaran paling enak lah :(
>
> :-D hayo hayo orang ruby + orang rails bakal rame pada serbu MWN
>
> ini gw ssh di MWN nih:
>
> sh-3.1$ uname -a
> Linux server204.masterwebnet.com 2.6.18-4-486 #1 Mon Mar 26 16:39:10 UTC
> 2007 i686 GNU/Linux
>
> sh-3.1$ rails -v
> getopt: invalid option -- v
> Terminating...
>
> sh-3.1$ which rails
> /usr/bin/rails
>
> sh-3.1$ rails --version
> getopt: unrecognized option `--version'
> Terminating...
>
> sh-3.1$ rails tmp
> create
> create app/controllers
> create app/helpers
> create app/models
> create app/views/layouts
> create config/environments
> create components
> create db
> create doc
> create lib
> create lib/tasks
> create log
> create public/images
> create public/javascripts
> create public/stylesheets
> create script/performance
> create script/process
> create test/fixtures
> create test/functional
> create test/integration
> create test/mocks/development
> create test/mocks/test
> create test/unit
> create vendor
> create vendor/plugins
> create tmp/sessions
> create tmp/sockets
> create tmp/cache
> create Rakefile
> create README
> create app/controllers/application.rb
> create app/helpers/application_helper.rb
> create test/test_helper.rb
> create config/database.yml
> create config/routes.rb
> create public/.htaccess
> create config/boot.rb
> create config/environment.rb
> create config/environments/production.rb
> create config/environments/development.rb
> create config/environments/test.rb
> create script/about
> create script/breakpointer
> create script/console
> create script/destroy
> create script/generate
> create script/performance/benchmarker
> create script/performance/profiler
> create script/process/reaper
> create script/process/spawner
> create script/runner
> create script/server
> create script/plugin
> create public/dispatch.rb
> create public/dispatch.cgi
> create public/dispatch.fcgi
> create public/404.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
>
> sh-3.1$ gem -v
> 0.9.0
>
> sh-3.1$ ruby -v
> ruby 1.8.5 (2006-08-25) [i486-linux]
>
> sh-3.1$ gem -v
> 0.9.0
>
> sh-3.1$ cat app/views/coba/index.rhtml
> Lho ini MWN sudah bisa jalan rails nya lho ya :-D
>
> <%= Time.now.strftime("%X") %>
>
> sh-3.1$
> sh-3.1$ which GET
> /usr/bin/GET
>
> sh-3.1$ HEAD http://127.0.0.1:3000/coba
> 200 OK
> Cache-Control: no-cache
> Connection: close
> Date: Tue, 10 Jul 2007 12:45:47 GMT
> Server: WEBrick/1.3.1 (Ruby/1.8.5/2006-08-25)
> Content-Length: 0
> Content-Type: text/html; charset=UTF-8
> Client-Date: Tue, 10 Jul 2007 12:45:47 GMT
> Client-Peer: 127.0.0.1:3000
> Client-Response-Num: 1
> Set-Cookie: _session_id=e3a4e5945e249429dd991ca83ec03daa; path=/
>
> sh-3.1$ GET http://127.0.0.1:3000/coba
> Lho ini MWN sudah bisa jalan rails nya lho ya :-D
>
> 19:45:51
>
> sh-3.1$
>
ada yang ketinggalan / di iTerm tab satunya soalnya.
gw nyobainnya pake webrick doang :-D
$ script/server
=> Booting WEBrick...
=> Rails application started on http://127.0.0.1:3000
=> Ctrl-C to shutdown server; call with --help for options
[2007-07-10 19:45:01] INFO WEBrick 1.3.1
[2007-07-10 19:45:01] INFO ruby 1.8.5 (2006-08-25) [i486-linux]
[2007-07-10 19:45:01] INFO WEBrick::HTTPServer#start: pid=6013 port=3000
127.0.0.1 - - [10/Jul/2007:19:45:47 WIT] "HEAD /coba HTTP/1.1" 200 0
- -> /coba
127.0.0.1 - - [10/Jul/2007:19:45:51 WIT] "GET /coba HTTP/1.1" 200 61
- -> /coba
--
r9 = { nama: Arie, nick: ariekeren, ym!: riyari3,
blog: http://ariekusumaatmaja.wordpress.com,
myst: http://groups.yahoo.com/groups/id-ruby,
vilr: %Q~
function! WhitePearl()
perl << EOF
VIM::Msg("pearls are nice for necklaces");
VIM::Msg("rubys for rings");
VIM::Msg("pythons for bags");
VIM::Msg("tcls????");
EOF
endfunction
~ }