下了 晚上听
@andor_chen 的翻译的《Ruby on Rails Tutorial》中文版 很不错..
呵呵呵
内存有多大 你就可以用多大
require 就可以了
» ping ruby-china.org 68 ↵ PING ruby-china.org (122.226.207.19): 56 data bytes 64 bytes from 122.226.207.19: icmp_seq=0 ttl=54 time=51.784 ms 64 bytes from 122.226.207.19: icmp_seq=1 ttl=54 time=51.727 ms 64 bytes from 122.226.207.19: icmp_seq=2 ttl=54 time=51.353 ms 64 bytes from 122.226.207.19: icmp_seq=3 ttl=54 time=51.958 ms 64 bytes from 122.226.207.19: icmp_seq=4 ttl=54 time=50.809 ms 64 bytes from 122.226.207.19: icmp_seq=5 ttl=54 time=51.846 ms 64 bytes from 122.226.207.19: icmp_seq=6 ttl=54 time=51.001 ms 64 bytes from 122.226.207.19: icmp_seq=7 ttl=54 time=51.463 ms ^C --- ruby-china.org ping statistics --- 8 packets transmitted, 8 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 50.809/51.493/51.958/0.389 ms
人品不错!~
cool
碉堡了
2.我们什么时候会在数据库生成表,什么时候会生成数据库 一般项目搭建起来就会生成数据库 然后当你完成你编写的第一个 migration 文件后会进行表的生成,对应的命令分别是 RAILS_ENV= xxxxx(环境) rake db:create / migrate
rails g 这里 g 是简写 generate 生成的意思 然后的 controller model 只是对应不同的 rb 文件。根据这个 rails 帮助你将你的 rb 文件放置到 app 下面对应的文件夹
其实我觉得一个人只要愿意去学,什么前提条件都是空谈,花时间 花心思就行
查看 ruby 的规范
$ ping ruby-china.org [18:02:54]
PING ruby-china.org (58.215.184.15): 56 data bytes
64 bytes from 58.215.184.15: icmp_seq=0 ttl=49 time=233.073 ms
64 bytes from 58.215.184.15: icmp_seq=1 ttl=49 time=233.103 ms
64 bytes from 58.215.184.15: icmp_seq=2 ttl=49 time=233.354 ms
64 bytes from 58.215.184.15: icmp_seq=3 ttl=49 time=232.102 ms
64 bytes from 58.215.184.15: icmp_seq=4 ttl=49 time=232.714 ms
64 bytes from 58.215.184.15: icmp_seq=5 ttl=49 time=233.021 ms
64 bytes from 58.215.184.15: icmp_seq=6 ttl=49 time=231.599 ms
64 bytes from 58.215.184.15: icmp_seq=7 ttl=49 time=232.340 ms
64 bytes from 58.215.184.15: icmp_seq=8 ttl=49 time=231.886 ms
64 bytes from 58.215.184.15: icmp_seq=9 ttl=49 time=232.251 ms
64 bytes from 58.215.184.15: icmp_seq=10 ttl=49 time=231.702 ms
64 bytes from 58.215.184.15: icmp_seq=11 ttl=49 time=231.154 ms
帅气
cool
KEY_FACTORY_ALGORITHM = RSA
\
帅气
看来大家都对 oauth 无爱 ,, 汇报下 我用 httpclient 解决了问题。
顶
#1 楼 @tiseheaini 发了