《一》初步完成curd
时间:2010-07-17 来源:xiayw
1 准备:
Pratical JRuby on Rails Web 2.0 Project
这本书很老了所以跟着作出老多问题
我用了很多时间才把基本功能搞地。
先说环境:
jruby -S gem list -l
*** LOCAL GEMS ***
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activerecord-jdbc-adapter (0.9.7 java)
activerecord-jdbcmysql-adapter (0.9.7 java)
activeresource (2.3.8)
activesupport (2.3.8)
BlueCloth (1.0.1)
columnize (0.3.1)
facets (2.8.4)
gem_plugin (0.2.3)
jdbc-mysql (5.0.4)
jruby-openssl (0.7)
mongrel (1.1.5 java)
mongrel_jcluster (0.0.1)
net-scp (1.0.2)
net-ssh (2.0.23)
net-ssh-gateway (1.0.1)
net-ssh-multi (1.0.1)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7)
RedCloth (4.2.3 universal-java)
rspec (1.3.0)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3.2 java)
ruby-debug-ide (0.4.9)
rubygems-update (1.3.7)
sources (0.0.1)
will_paginate (2.3.14)
看看你缺什么就装装吧 我用jruby 所以安转是这样的
jruby -S gem instaill will_paginate (其他 gems 同理)
装完就可以开发了。
http://apress.com/resource/bookfile/3663
上有源码 不过 比较老有好多东西你要自己改改。
现说翻页吧,这个东西折腾了我好几天
Pratical JRuby on Rails Web 2.0 Project
这本书很老了所以跟着作出老多问题
我用了很多时间才把基本功能搞地。
先说环境:
jruby -S gem list -l
*** LOCAL GEMS ***
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activerecord-jdbc-adapter (0.9.7 java)
activerecord-jdbcmysql-adapter (0.9.7 java)
activeresource (2.3.8)
activesupport (2.3.8)
BlueCloth (1.0.1)
columnize (0.3.1)
facets (2.8.4)
gem_plugin (0.2.3)
jdbc-mysql (5.0.4)
jruby-openssl (0.7)
mongrel (1.1.5 java)
mongrel_jcluster (0.0.1)
net-scp (1.0.2)
net-ssh (2.0.23)
net-ssh-gateway (1.0.1)
net-ssh-multi (1.0.1)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7)
RedCloth (4.2.3 universal-java)
rspec (1.3.0)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3.2 java)
ruby-debug-ide (0.4.9)
rubygems-update (1.3.7)
sources (0.0.1)
will_paginate (2.3.14)
看看你缺什么就装装吧 我用jruby 所以安转是这样的
jruby -S gem instaill will_paginate (其他 gems 同理)
装完就可以开发了。
http://apress.com/resource/bookfile/3663
上有源码 不过 比较老有好多东西你要自己改改。
现说翻页吧,这个东西折腾了我好几天
相关阅读 更多 +
排行榜 更多 +