rails 3.0 demo

生成项目
rails topscore
修改config/database.yml

添加restful_authentication
zhanghong@zh-desktop:~/workspace/topscore$ cd vendor/plugins/
zhanghong@zh-desktop:~/workspace/topscore/vendor/plugins$ git clone git://github.com/Satish/restful-authentication.git restful_authentication
Initialized empty Git repository in /home/zhanghong/workspace/topscore/vendor/plugins/restful_authentication/.git/
remote: Counting objects: 1798, done.
remote: Compressing objects: 100% (590/590), done.
remote: Total 1798 (delta 1042), reused 1736 (delta 1010)
Receiving objects: 100% (1798/1798), 747.43 KiB | 73 KiB/s, done.
Resolving deltas: 100% (1042/1042), done.
zhanghong@zh-desktop:~/workspace/topscore/vendor/plugins$ cd ../..
zhanghong@zh-desktop:~/workspace/topscore$ rails g authenticated user sessions


create Model
 

你可能感兴趣的:(java,git,Rails)