浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 564 565 566 567 568 569 570 571 572 ··· 630 下一页

2010年11月2日

摘要: http://stackoverflow.com/questions/3608287/installing-mysql2-gem-for-rails-3when you migrate from sqlite to mysqlyou need use rake db:schema:load to load schma to new dbrails destroy model GiftsProduc... 阅读全文
posted @ 2010-11-02 10:28 lexus 阅读(444) 评论(1) 推荐(0)

2010年11月1日

摘要: http://abeautifulsite.net/blog/2008/03/jquery-file-tree/有多咱语言,就是没有html我用的这个http://github.com/jzaefferer/jquery-treeview 阅读全文
posted @ 2010-11-01 18:18 lexus 阅读(206) 评论(0) 推荐(0)

摘要: ActiveRecord::ObserverObserver类会对外部的原始类内在生命周期内实现触发行为的“回调”做出反应。当一个“模型”类担负了不是它的核心职责的功能时,使用这种方式就会减少混乱。 从上面说明中可以看出,Observer类是对Callbacks类的一种变相的补充。补充的原因是因为有些“模型”为了迁就Callb... 阅读全文
posted @ 2010-11-01 16:01 lexus 阅读(413) 评论(0) 推荐(0)

摘要: rails g controller Product action1 action2The controller generator is expecting parameters in the form of generate controller ControllerName action1 action2. Let’s make a Greetings controller with an ... 阅读全文
posted @ 2010-11-01 15:55 lexus 阅读(375) 评论(0) 推荐(0)

摘要: http://www.netlingo.com/news/Top_1000_Google_Page_Rank_Sites.htm 阅读全文
posted @ 2010-11-01 14:17 lexus 阅读(256) 评论(0) 推荐(0)

摘要: http://www.ruten.com.tw/http://www.ruten.com 阅读全文
posted @ 2010-11-01 13:26 lexus 阅读(225) 评论(0) 推荐(0)

摘要: 安装完Ubuntu 10.04后该做的几件事情版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息今天把实验室的一台台式机也装上了Lucid系统,在等待apt-get和代码编译的时间,正好把以前围脖上的一些笔记整理一下,方便以后再装lucid的时候查看。0. 必要的基本配置编辑/etc/sudoers,添加当前用户到sudoer组修改root口令添加完整的简体中文字符集支持:... 阅读全文
posted @ 2010-11-01 10:13 lexus 阅读(452) 评论(0) 推荐(0)

摘要: http://www.cutt.com/doc/report 阅读全文
posted @ 2010-11-01 01:00 lexus 阅读(178) 评论(0) 推荐(0)

2010年10月31日

摘要: the netbeans ide support rails3 this is a great news,and apanta beta 3 & ruby mine didn't update immedatly,they didn't suit for moden rails development 阅读全文
posted @ 2010-10-31 23:27 lexus 阅读(333) 评论(0) 推荐(0)

摘要: i cost 2 day to find this out,hope help someone .the rails3 provide a way to custom the scaffold codewhen i use rails g scaffold_controller admin/Product name:string to separate the backend code from ... 阅读全文
posted @ 2010-10-31 23:20 lexus 阅读(451) 评论(0) 推荐(0)

摘要: 呵呵MB真的是术业有专攻,策划产品的人真的有厉害的 阅读全文
posted @ 2010-10-31 19:02 lexus 阅读(186) 评论(0) 推荐(0)

摘要: ~/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9/gems/rails-3.0.1/binjava home enviroment sethttp://confluence.atlassian.com/display/JIRA/Installing+Java+on+Ubuntu+or+Debian Installing Java on Ubuntu or ... 阅读全文
posted @ 2010-10-31 18:36 lexus 阅读(359) 评论(0) 推荐(0)

摘要: ~/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9/gems/rails-3.0.1/binjava home enviroment sethttp://confluence.atlassian.com/display/JIRA/Installing+Java+on+Ubuntu+or+DebianInstalling Java on Ubuntu or D... 阅读全文
posted @ 2010-10-31 18:13 lexus 阅读(280) 评论(0) 推荐(0)

摘要: uby-1.9.2-p0 > "product"<=>"gifts"=> 1ruby-1.9.2-p0 > "jue"<=>"des"=> 1ruby-1.9.2-p0 > "jue"<=>"gift"=> 1ruby-1.9.2-p0 > "jue"<=>"k"=> -1ruby-1.9.2-p0 &... 阅读全文
posted @ 2010-10-31 17:56 lexus 阅读(503) 评论(0) 推荐(0)

摘要: uby (#12) - 字符串处理:Ruby 字符串处理 (#185) - Message List字符串处理:Ruby 字符串处理ruby_学习笔记:字符串处理函数2008-10-08 11:42:24最最常用的[ 字符串处理]函数1.返回字符串的长度str.length => integer2.判断字符串中是否包含另一个串str.include? other_str => true... 阅读全文
posted @ 2010-10-31 16:45 lexus 阅读(242) 评论(0) 推荐(0)

摘要: http://zigzag.github.com/2010/01/18/customizing-your-scaffold-template-become-easier-in-rails3.htmlgreak areticlehttp://www.railsdispatch.com/posts/building-or-updating-a-rails-3-pluginthis is awasome... 阅读全文
posted @ 2010-10-31 11:26 lexus 阅读(266) 评论(0) 推荐(0)

摘要: http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/ 阅读全文
posted @ 2010-10-31 10:40 lexus 阅读(191) 评论(0) 推荐(0)

2010年10月30日

摘要: dd 阅读全文
posted @ 2010-10-30 23:13 lexus 阅读(158) 评论(0) 推荐(0)

摘要: rails loop 阅读全文
posted @ 2010-10-30 19:13 lexus 阅读(155) 评论(0) 推荐(0)

摘要: Active Record Callbacks Callbacks are hooks into the life cycle of an Active Record object that allow you to trigger logic before or after an alteration of the object state. This can be used to make ... 阅读全文
posted @ 2010-10-30 14:23 lexus 阅读(200) 评论(0) 推荐(0)

上一页 1 ··· 564 565 566 567 568 569 570 571 572 ··· 630 下一页