Skip to content

Instantly share code, notes, and snippets.

@cnruby
Created February 14, 2010 09:23
Show Gist options
  • Save cnruby/303924 to your computer and use it in GitHub Desktop.
Save cnruby/303924 to your computer and use it in GitHub Desktop.
$ # 安装Rails3.0pre版本
$ sudo gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n sqlite3-ruby
$ sudo gem install rails --pre
$ # 使用templates技术开发Rails程序
$ sudo vim $HOME/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/gems/1.8/gems/railties-3.0.0.beta/lib/rails/generators/actions.rb
# 参考 http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/ 上图。
** rails blog -m http://www.lycom.de/files/rails-templates/rails187.txt && cd blog
$ # 使用Rails程序
$ rails server
$ open http://localhost:3000/posts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment