Rails3的安装及项目步骤!

项目步骤:

   1.rails rails3
   2.cd rails3
   3.ruby script/rails generate scaffold product name:string description:text
   4.rake db:migrate
   5.ruby script/rails server
   6.http://localhost:3000/products

 Rails3.0安装:

1)  sudo gem install i18n tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler
2)  gem install rails --pre
   ggwang@ggwang-laptop:~$ rails rails3
  /usr/local/lib/site_ruby/1.8/rubygems.rb:384:in `bin_path': can't find executable rails for rails-3.0.0.beta         (Gem::Exception) from /usr/bin/rails:19
3)  ggwang@ggwang-laptop:~$ sudo gem install railties --pre
[sudo] password for ggwang:
Successfully installed railties-3.0.0.beta
1 gem installed
Installing ri documentation for railties-3.0.0.beta...
Installing RDoc documentation for railties-3.0.0.beta...(责任编辑:admin) < /content >

你可能感兴趣的:(Rails3的安装及项目步骤!)