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

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

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

2010年11月9日

摘要: http://zetetic.net/blog/2010/05/18/pretty-page-title-in-rails-3/ 阅读全文
posted @ 2010-11-09 21:10 lexus 阅读(160) 评论(0) 推荐(0)

摘要: http://zetetic.net/blog/2010/05/18/pretty-page-title-in-rails-3/ 阅读全文
posted @ 2010-11-09 21:10 lexus 阅读(156) 评论(0) 推荐(0)

摘要: 2009-06-17Rails 中delete和destroy的用法区别简单讲,一句话,delete不会触发回调效率比较高Deletes the row with a primary key matching the id argument, using a SQL DELETE statement, and returns the number of rows deleted. Active R... 阅读全文
posted @ 2010-11-09 14:31 lexus 阅读(712) 评论(0) 推荐(0)

2010年11月8日

摘要: when you modified db schema you need restart railc console enviroment,for some effecitrails g model CommentShowsProduct --migration=false 阅读全文
posted @ 2010-11-08 11:55 lexus 阅读(327) 评论(0) 推荐(0)

摘要: The following methods trigger validations, and will save the object to the database only if the object is valid:createcreate!savesave!updateupdate_attributesupdate_attributes!The bang versions (e.g.sa... 阅读全文
posted @ 2010-11-08 08:41 lexus 阅读(216) 评论(0) 推荐(0)

2010年11月7日

摘要: Ruby迭代器each、map、collect、inject2010-02-20 15:01说明: each——连续访问集合的所有元素 collect—-从集合中获得各个元素传递给block,block返回的结果生成新的集合。 map——-同collect。 inject——遍历集合中的各个元素,将各个元素累积成... 阅读全文
posted @ 2010-11-07 17:54 lexus 阅读(272) 评论(0) 推荐(0)

摘要: http://api.jquery.com/closest/ 阅读全文
posted @ 2010-11-07 14:13 lexus 阅读(428) 评论(0) 推荐(0)

摘要: Will PaginatePagination is just limiting the number of records displayed. Why should you let it get in your way while developing, then? This plugin makes magic happen. Did you ever want to be able to ... 阅读全文
posted @ 2010-11-07 11:11 lexus 阅读(396) 评论(0) 推荐(0)

摘要: Rails3中使用JQuery首先建立一个新项目,实际上有没有-J都无所谓1railsnewhelloworld -J然后,在项目的Gemfile中添加,1gem'jquery-rails'运行1bundle install再运行1rails generate jquery:install这时Prototype和相应JS就会被删除,而替换成JQuery的JS。如果你要使用JQuery UI的话在上... 阅读全文
posted @ 2010-11-07 09:44 lexus 阅读(406) 评论(0) 推荐(0)

摘要: http://agilewebdevelopment.com/ 阅读全文
posted @ 2010-11-07 08:43 lexus 阅读(136) 评论(0) 推荐(0)

摘要: http://ilstar.blogbus.com/logs/73933681.htmlhttp://hlee.javaeye.com/blog/341123Creating a 100% ajax CRUD using rails 3 and unobtrusive javascripthttp://stjhimy.com/posts/7http://dev.nozav.org/rails_aj... 阅读全文
posted @ 2010-11-07 00:15 lexus 阅读(202) 评论(0) 推荐(0)

2010年11月6日

摘要: http://www.riverwatcher.com/web.html国内公司做国外的事http://net.tutsplus.com/tutorials/ruby/5-awesome-new-rails-3-features/5 Awesome New Rails 3 Features * Tutorials\ * Ruby5 Awesome New Rails 3 FeaturesJohn ... 阅读全文
posted @ 2010-11-06 23:42 lexus 阅读(214) 评论(0) 推荐(0)

摘要: rails g model AdSlot category_id:integer name:string location:string type:string memo:text -p不生成crud视图页面,生成migration及modelrails g paperclip material image_urlthe `type` seems a keyword of rails the it... 阅读全文
posted @ 2010-11-06 20:55 lexus 阅读(233) 评论(0) 推荐(0)

摘要: http://mlzboy.wdwd.comhttp://demo.dreamershop.com 阅读全文
posted @ 2010-11-06 12:59 lexus 阅读(131) 评论(0) 推荐(0)

2010年11月5日

摘要: <html><head><!-- include needed JS files--><script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script><%= javascript_includ... 阅读全文
posted @ 2010-11-05 21:11 lexus 阅读(472) 评论(0) 推荐(0)

摘要: javascript字符串替换所有要替换字符javascript字符串替换所有要替换字符javascript替换函数使用正则表达式//将字母i全部替换成5<script language="javascript">var txt = "sjfisjfisdjfijsidfjioalfjewofjjgs";alert(txt .replace(/i/g,"5"));</script... 阅读全文
posted @ 2010-11-05 20:56 lexus 阅读(377) 评论(0) 推荐(0)

摘要: https://github.com/jquery/jquery-tmpl 阅读全文
posted @ 2010-11-05 18:40 lexus 阅读(151) 评论(0) 推荐(0)

摘要: http://www.aaronrussell.co.uk/blog/check-if-an-element-exists-using-jquery/Monday, 15 September 2008How to check whether an element exists using jQueryWhen using jQuery (or any other JavaScript librar... 阅读全文
posted @ 2010-11-05 15:37 lexus 阅读(483) 评论(0) 推荐(0)

摘要: 期待mergeHow to create and apply a patch with Subversionhttp://ariejan.net/2007/07/03/how-to-create-and-apply-a-patch-with-subversion/It’s been a while since I posted something new on the use of S... 阅读全文
posted @ 2010-11-05 15:35 lexus 阅读(305) 评论(0) 推荐(0)

摘要: methodhttp://apidock.com/ruby/Enumerable/each_with_index each_with_index Ruby latest stable (v1_8_7_72) - 0 notes - Class: Enumerable 1_8_6_287 (0) 1_8_7_72 (-38) What's this? Related methods Instanc... 阅读全文
posted @ 2010-11-05 11:31 lexus 阅读(322) 评论(0) 推荐(0)

上一页 1 ··· 562 563 564 565 566 567 568 569 570 ··· 630 下一页