`
daigong
  • 浏览: 114188 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
社区版块
存档分类
最新评论
文章列表

rails3 中替换主键

具体: http://stackoverflow.com/questions/1200568/using-rails-how-can-i-set-my-primary-key-to-not-be-an-integer-typed-column/1434819#1434819 1.在迁移文件中加入: create_table :users,{:id => false} do |t| t.integer :iid t.string :name t.timestamps end execute "ALTER TABLE ...
转 [url] http://www.linux521.com/2009/system/201103/14093_3.html [/url]
查看系统内存使用状况 vmstat 1 -S M procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st 其中 :swpd 虚拟内存,free 空闲内存 详解:http://linux.chinaunix.net/techdoc/system/2008/09/10/1031369.shtml IO情况查询 io ...

linux grub引导过程

http://apps.hi.baidu.com/share/detail/16068846
zh http://woshao.com/article/6fc977ec2a1a11e099cd000c2959fd2a/ en http://vidicorp.org/blog/2010/11/near-precise-geo-positioning-using-html5-very-interesting/
转至 [url]http://apps.hi.baidu.com/share/detail/34732087[url] /usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libz.a: could not read symbols: Bad value 一般是64 位 电脑才会出现。 解决方法如 ...
Rails3的REST很强大了,以前我一直认为rails3无法达到django的url配置灵活度,最近仔细研究了下,发现没有啥问题,差不多麻,:-) rails3 url配置都在 config/routes.rb中 如果刚刚生成文件,按照文件注释都可以学习很多用法,rails3的配置 ...
Rails中会自动引用一些文件,例如再Controller中引用Model等是自动发生的,如果再Rails项目中加入一个新的文件夹怎么引用其中的代码呢? 1.新建文件夹 daigong 2.在 config/application.py中修改 # Custom directories with classes and modules you want to be autoloadable. config.autoload_paths += %W(#{config.root}/daigong) 告诉rails自动加载daigong目录下的module 3.因为在rail ...
淘宝Api相关的链接: 主页: http://open.taobao.com/ API说明: http://my.open.taobao.com/apidoc/index.htm 1.申请开发者,创建应用 淘宝客网站 ---> 自用型,可以对本帐号的商品&订单操作 其他几项没有细致研究,baidu一下“淘宝自用型”信息 2.申请成功,再管理证书页面会获得App Key、App Secret 这里说明下,淘宝很肯爹,分为沙盒环境和真实环境,而这俩个的环境的App Secret不相同 ,其次还有 TaobaoClient client=new DefaultTaobaoCli ...
1. http://blog.sina.com.cn/s/blog_534c4b640100a0ed.html 2. http://blog.sina.com.cn/s/blog_534c4b640100a0ff.html
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://blackanger.blog.51cto.com/140924/355320 --转载请注明出处 Rails3里多了个Bundler工具。 它是一个Library管理工具,它提 ...
http://bbs.blueidea.com/thread-2956530-1-1.html
转: http://www.alfajango.com/blog/rails-3-remote-links-and-forms/ <script type="text/javascript"> //处理ajax回调函数 $(function() { // ajax:before // fires before the request starts, provided a URL was provided in href or action // ajax:loading // fires afte ...
http://ubuntuforums.org/showthread.php?t=1090365
http://ihower.tw/rails3/migrations.html
Global site tag (gtag.js) - Google Analytics