锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV无码乱码在线观看裸奔 ,亚洲av无码成人精品区,亚洲AV日韩AV永久无码绿巨人http://www.tkk7.com/leekiang/category/30625.htmlMDA/MDD/TDD/DDD/DDDDDDDzh-cnSat, 27 Aug 2011 03:03:40 GMTSat, 27 Aug 2011 03:03:40 GMT60rmagickhttp://www.tkk7.com/leekiang/archive/2010/05/17/321125.htmlleekiangleekiangSun, 16 May 2010 19:12:00 GMThttp://www.tkk7.com/leekiang/archive/2010/05/17/321125.htmlhttp://www.tkk7.com/leekiang/comments/321125.htmlhttp://www.tkk7.com/leekiang/archive/2010/05/17/321125.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/321125.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/321125.html鍦╳indows涓婄洿鎺em瀹夎rmagick鏃舵姤Building native extensions.聽聽 Error installing rmagick windows

1 浠?a target="_blank">http://rubyforge.org/projects/rmagick/ 涓嬭澆rmagick-win32 瀵瑰簲鐨剒ip鍖?娌℃壘鍒皉uby1.8.7鍜?.9鐨勶紝鍙ソ鍏堜笅1.8.6鐨?/div>
2 瑙e帇zip鍒頒竴涓復鏃剁洰褰曪紝鍦ㄨ鐩綍涓湁涓涓狪mageMagick鐨別xt瀹夎鏂囦歡,瀹夎銆?/div>
3 寮涓涓懡浠よ紿楀彛錛宑d鍒拌В鍘嬬殑涓存椂鐩綍錛屾暡鍏ュ懡浠わ細 gem install rmagick.
4.鎶?span id="ctl00_MainContentPlaceholder_ctl01_ctl00_lblEntry">ImageMagick 鐨勫畨瑁呰礬寰勬斁鍒皃ath鐜鍙橀噺閲岄潰

鍙兘鍑虹幇鐨勯棶棰橈細
1.CORE_RL_magick_.dll鎵句笉鍒幫紵
鎶?span id="ctl00_MainContentPlaceholder_ctl01_ctl00_lblEntry">ImageMagick 鐨勫畨瑁呰礬寰勬斁鍒皃ath鐜鍙橀噺閲岄潰鍘誨氨OK浜嗐?/div>
2.gem install rmagick 澶辮觸
鏇存柊gem鐨? 鐗堟湰錛?gem update --system)

鍙傝僪ttp://wxmfly.javaeye.com/blog/216787


leekiang 2010-05-17 03:12 鍙戣〃璇勮
]]>ruby絎旇http://www.tkk7.com/leekiang/archive/2010/03/17/315647.htmlleekiangleekiangTue, 16 Mar 2010 16:53:00 GMThttp://www.tkk7.com/leekiang/archive/2010/03/17/315647.htmlhttp://www.tkk7.com/leekiang/comments/315647.htmlhttp://www.tkk7.com/leekiang/archive/2010/03/17/315647.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/315647.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/315647.htmlarr = [1,2,3,4]
puts arr.find{|i| i%2 == 0 }聽聽 #find榪斿洖婊¤凍鏉′歡鐨勭涓鏉¤褰?br />puts arr.select{|i| i%2 == 0}聽 #select榪斿洖婊¤凍鏉′歡鐨勫叏閮ㄨ褰?br />arr.unshift(0)聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍦ㄥご閮ㄦ坊鍔?br />arr.push(5,6)聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍦ㄥ熬閮ㄦ坊鍔?br />arr<<7聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 涓巔ush鐨勪笉鍚屽湪浜巔ush鍙互鏀懼涓?br />arr.sort.reverse聽聽聽聽聽聽聽聽聽聽聽聽聽聽 鍏堟帓搴忓啀鍊掔疆錛屽嵆闄嶅簭


leekiang 2010-03-17 00:53 鍙戣〃璇勮
]]>
rcovhttp://www.tkk7.com/leekiang/archive/2010/03/06/314686.htmlleekiangleekiangSat, 06 Mar 2010 05:00:00 GMThttp://www.tkk7.com/leekiang/archive/2010/03/06/314686.htmlhttp://www.tkk7.com/leekiang/comments/314686.htmlhttp://www.tkk7.com/leekiang/archive/2010/03/06/314686.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/314686.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/314686.html瀹夎涔嬪墠蹇呴』鍏堝畨瑁匘evKit錛宧ttp://github.com/oneclick/rubyinstaller/wiki/Development-Kit閲屾湁璇︾粏鐨勫畨瑁呮楠?br />涓昏姝ラ:
1)涓嬭澆DevKit瑙e帇鍒癱:\DevKit鐩綍錛屼笅杞藉湴鍧涓篽ttp://rubyinstaller.org/downloads/
2)C:\DevKit>ruby dk.rb init
3)C:\DevKit>ruby dk.rb install
4)C:\DevKit>gem install rdiscount --platform=ruby 鎴戣寰楄繖涓姝ュ彧鏄獙璇丏evKit鏄惁瀹夎鎴愬姛錛屼篃鍙互涓嶅仛鐨勩?br />5)鏈濂芥妸c:\DevKit\bin鍔犲埌鐜鍙橀噺

2,rcov test/functional/*.rb test/unit/*.rb --output=public/rcov --rails
浼氱敓鎴愪竴澶у爢鍙嶆槧嫻嬭瘯瑕嗙洊鎯呭喌鐨勭綉欏墊斁鍒皃ublic/rcov鐩綍涓嬶紝濡傛灉涓嶅啓--output錛屽垯榪欎簺緗戦〉浼氭斁鍒伴」鐩笅鏂板緩鐨刢overage鐩綍銆?br />
3,鍦ㄩ」鐩笅鎵цrake stats鍙湅鍒頒唬鐮佺粺璁★紝浠ュ強浠g爜鍜屾祴璇曚唬鐮佺殑姣斾緥銆?br />
4,鍦╪etbeans6.9閲屽紑濮嬫庝箞涔熸樉紺轟笉浜嗚鐩栫巼鎶ュ憡錛屽悗鏉ユ墦寮涓涓ā鍨嬬被錛岀偣鍑繪墽琛屾祴璇曪紝鐒跺悗灝辨湁浜嗐?br />鑰屼笖鍙互鏄劇ず姣忎竴琛屼唬鐮佹槸鍚﹁嫻嬭瘯鍒?鐪嬩簡鍑犱釜綾葷殑瑕嗙洊鎯呭喌錛屾劅瑙夋湁鐨勬柟娉曢噷鐨勪唬鐮佹槑鏄庤嫻嬩簡錛屼絾鍥懼艦閲屾樉紺烘病鏈夋祴鍒般?br />http://blogs.sun.com/tor/entry/netbeans_screenshot_of_the_week6鍚庨潰鐨勮瘎璁洪噷鏈変漢鍐欎簡浠栨槸濡備綍鍋氱殑銆?br />
http://www.jairrillo.com/blog/2008/08/18/introduction-to-rspec-part-2-testing-the-rails-model/
http://eigenclass.org/hiki.rb?rcov#l2
http://stackoverflow.com/questions/3451346/cannot-install-rcov-from-gem

leekiang 2010-03-06 13:00 鍙戣〃璇勮
]]>
rails涓殑RESThttp://www.tkk7.com/leekiang/archive/2010/02/21/313489.htmlleekiangleekiangSat, 20 Feb 2010 18:53:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/21/313489.htmlhttp://www.tkk7.com/leekiang/comments/313489.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/21/313489.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313489.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313489.html

leekiang 2010-02-21 02:53 鍙戣〃璇勮
]]>
ruby瑙f瀽htmlhttp://www.tkk7.com/leekiang/archive/2010/02/20/313478.htmlleekiangleekiangSat, 20 Feb 2010 10:14:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/20/313478.htmlhttp://www.tkk7.com/leekiang/comments/313478.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/20/313478.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313478.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313478.htmlC:\Ruby1.8.7\lib\ruby\1.8\open-uri.rb

require聽'open-uri'
open(
'c:/boot.ini'){|file|
聽聽puts聽file.
class聽聽#File
}
open(
'http://coderlee.cnblogs.com'){|file|
聽聽puts聽file.
class聽聽#Tempfile
}
鍙互鐪嬪嚭錛屾墦寮涓涓湰鏈烘枃浠剁殑鍧楀弬鏁版槸File綾誨瀷錛岃屾墦寮涓涓猽ri鐨勫潡鍙傛暟鏄竴涓猅empfile綾誨瀷銆傝繕鏈変竴鐐硅娉ㄦ剰錛屽氨鏄痮pen-uri閲岄潰鐨刼pen鏂規硶浼氳嚜鍔ㄥ302 redirection閲嶅畾鍚戝湴鍧榪涜榪借釜璁塊棶錛岃孨et::HTTP#get鏂規硶鍒欎笉浼氳嚜鍔ㄨ拷韙?02閲嶅畾鍚戝湴鍧銆?鎽樿嚜榪欓噷)

require聽'nokogiri'
require聽
'open-uri'
doc聽=聽Nokogiri::HTML(open('http://www.huomo.cn'))
doc.search(
"//h2/a").each聽do聽|link|
聽聽puts聽link.inner_text
聽聽puts聽link[:href]
end

url聽='http://www.google.cn/search?hl=zh-CN&q=%BC%D6%B1%A6%D3%F1'
doc聽
=聽Nokogiri::HTML.parse(open(url),聽nil,聽'gb2312')#涓嶈繖鏍峰啓浼氭湁涔辯爜

doc.css(
'h3.r聽a.l').each聽do|link|
聽聽puts聽link.inner_text
end

doc.xpath(
'//h3/a[@class="l"]').each聽do|link|
聽聽puts聽link.content
end

doc.search(
'h3.r聽a.l',聽'//h3/a[@class="l"]').each聽do|link|
聽聽puts聽link.content
end

鍙傝僪ttp://www.javaeye.com/topic/557485



leekiang 2010-02-20 18:14 鍙戣〃璇勮
]]>
rails澶勭悊闀挎墽琛屾椂闂寸殑璇鋒眰http://www.tkk7.com/leekiang/archive/2010/02/20/313430.htmlleekiangleekiangFri, 19 Feb 2010 20:42:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/20/313430.htmlhttp://www.tkk7.com/leekiang/comments/313430.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/20/313430.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313430.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313430.html
榪欎釜闂鏄湪浜烘満鐣岄潰鏂歸潰寰堟櫘閬嶏紝鑰屼笖涔熸湁涓涓櫘閬嶇殑瑙e喅鏂規硶 -- 鎶婁換鍔′氦緇欎竴涓儗鏅繍琛岀殑榪囩▼鎴栫嚎紼嬨備換浣曞紑鍙戣繃妗岄潰搴旂敤鐨勪漢閮戒細瑙夊緱寰堢啛鎮夈備絾鏄湁鏃跺欏鏋滃紑鍙戣呮妸鍒囨崲鍜岄氫俊鍋氬緱涓嶅ソ錛屼篃浼氱鍒伴夯鐑︺?br />
涓涓垜瑙夊緱杈冨ソ鐨勫姙娉曪紝鑰屽垢濂芥垜鐨凾houghtWorks鍚屼簨浠篃鍚屾剰錛屽氨鏄嬌鐢ㄤ竴涓猘ctor銆傚湪榪欎釜妯″瀷閲岋紝web璇鋒眰鐨刪andler鎶婇渶鏃墮暱鐨勮姹傚寘瑁呬負涓涓懡浠わ紙command錛夛紝鐒跺悗鏀捐繘闃熷垪錛坬ueue錛夊唴銆傚湪鑳屾櫙榪愯鐨刟ctor灝辯洃瀵熺潃榪欎釜queue錛屼粠queue涓彁鍑哄茍涓旀墽琛岃繖涓懡浠ゃ傚綋瀹冩妸榪欎釜鍛戒護鎵ц瀹屼簡錛屽氨閫氱煡鍓嶅彴鐣岄潰鐨刟ctor銆傞氬父榪欎釜queue涓寮濮嬩細鏄暟鎹簱鐨勪竴涓〃錛屼箣鍚庡鏈夐渶瑕佺殑璇濓紝鍐嶆妸瀹冩敼涓轟竴涓秷鎭槦鍒楋紙message queue錛夈?br />
鍜孉ctiveRecord鐨勬紡媧炰竴鏍鳳紝鎴戞彁璧瘋繖涓笉鏄洜涓哄畠鏄疪ails閲岀壒鏈夌殑闂錛涙垜浠湪鍚勭搴旂敤涔熶細鐪嬪埌鍚屾牱鐨勯棶棰樸傚煎緱鍦ㄨ繖閲屽甫鍑烘槸鍥犱負鐢≧ails鐨勪漢浠線寰寰堝鏄撳繕浜嗘湁榪欐牱鐨勬儏鍐靛彂鐢燂紝涔熷繕浜嗘湁榪欐牱鐨勬ā寮忓幓瑙e喅銆傛垜浠彂鐜癛ails鎶妛eb寮鍙戜腑閲嶅鍙堥噸澶嶇殑鐜妭鍙樺緱綆鏄撳拰蹇紝浣嗘槸澶嶆潅鐨勭幆鑺傛槸浠嶇劧瀛樺湪鐨勩?br />
鏉ユ簮:http://rickylui.com/lionwiki/index.php?page=Ruby+at+ThoughtWorks
聽聽聽聽 http://martinfowler.com/articles/rubyAtThoughtWorks.html


leekiang 2010-02-20 04:42 鍙戣〃璇勮
]]>
rails璋冭瘯http://www.tkk7.com/leekiang/archive/2010/02/19/313426.htmlleekiangleekiangFri, 19 Feb 2010 15:22:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/19/313426.htmlhttp://www.tkk7.com/leekiang/comments/313426.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/19/313426.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313426.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313426.html鏈畨瑁呯増鏈笌0\.4\..*妯″紡鍖歸厤鐨剅uby-debug-ide 鐐瑰嚮"瀹夎蹇熻皟璇曞櫒",鍑虹幇濡備笅鐨勯敊璇?
------------------------------------------------------
Building native extensions.聽 This could take a while...
ERROR:聽 Error installing ruby-debug-ide:
聽聽聽 ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe mkrf_conf.rb
Building native extensions.聽 This could take a while...

Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9 for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/ext/gem_make.out
------------------------------------------------------
鐒跺悗鍦–:\ruby\lib\ruby\gems\1.8\gems涓嬪彂鐜頒簡鍒氬垰鐢熸垚鐨剅uby-debug-ide-0.4.9鐩綍鍜宺uby-debug-base-0.10.3鐩綍銆?br />
鎺ョ潃鍦╟md閲実em install ruby-debug錛屼篃鎶ラ敊錛?br />------------------------------
Building native extensions.聽 This could take a while...
ERROR:聽 Error installing ruby-debug:
聽聽聽聽聽聽聽 ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb
creating Makefile
nmake
'nmake' 涓嶆槸鍐呴儴鎴栧閮ㄥ懡浠わ紝涔熶笉鏄彲榪愯鐨勭▼搴?br />鎴栨壒澶勭悊鏂囦歡銆?br />
Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-bas
e-0.10.3 for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/ext/gem_
make.out
-------------------------------
鐒跺悗鍙戠幇ruby-debug-base-0.10.3鐩綍閲嶆柊鐢熸垚浜嗐?br />
鐜板湪璇翠竴涓嬭В鍐蟲楠?
1錛屼笅杞絟ttp://rubyforge.iasi.roedu.net/gems/ruby-debug-base-0.9.3-mswin32.gem
聽聽 gem install ruby-debug-base-0.9.3-mswin32.gem
2, 鍘籬ttp://rubyforge.org/projects/debug-commons/涓嬭澆ruby-debug-ide-0.4.6.gem
聽聽 gem install ruby-debug-ide-0.4.6.gem
聽聽 鐗堟湰涓嶈兘楂樹簬0.4.6,濡傛灉楂樹簡閮芥姤聽聽聽聽聽聽聽
聽聽聽聽聽 ERROR: Failed to build gem native extension.
聽聽 0.4.7瑙乺uby-debug-ide-0.4.7\ext\extconf.rb
聽聽 0.4.9瑙乺uby-debug-ide-0.4.9\ext\mkrf_conf.rb
聽聽 0.4.6鍘嬫牴灝辨病鏈塭xt鐩綍
聽聽 鏈変漢璇磋瑁呬粈涔坙inecache.gem錛屾垜娌″畨瑁呫?br />聽聽 榪樻湁浜鴻浜唕uby-debug.gem,鎴戜篃娌″畨瑁呫?br />聽聽 鍦╤ttp://rubyforge.mirrors.roedu.net/gems閲岃兘鎵懼埌鑰佺増鏈?br />
鎰熻阿http://hlee.javaeye.com/blog/576237

鍦╪etbeans閲岃皟璇曟椂鍙戠幇鏈夐棶棰?閭d釜緇夸笁瑙掍笉鑳界偣澶氫簡錛屽惁鍒欎細褰卞搷鍚庨潰鐨勮皟璇曘?br />

鍙﹀涓嶆槑鐧絞em闄や簡鎶婃枃浠舵嫹鍒癵ems鐩綍涓嬶紝榪樺仛浜嗕粈涔堛?br />


鍚庨潰閮芥槸璁板綍錛屼粎渚涘弬鑰冦?br />鍦?a >How to enable Ruby debug in RubyMine 2.0 on Windows閲岃
(If you installed Ruby with the zip binary, reinstall it using the one-click installer as found here. That's because currently the ruby debugger ide only works on Windows using a RubyInstaller installation). Also verify that Ruby's root path doesn't include spaces.
  1. ...鐣?br />
  2. ...鐣?
  3. ...鐣?
  4. Open with a text editor the file command.rb that's part of the installed ruby-debug-ide19 gem. In my case, that file was under folder C:\Programmi\Ruby19\lib\ruby\gems\1.9.1\gems\ruby-debug-ide19-0.4.12\lib\ruby-debug
  5. Modify the beginning of procedure debug_eval (at line 120) so to enter a new statement between statements str = str.to_s and max_time = 10. The new statement to enter is:
    return "" if str == "$FILENAME"

    At the end, the procedure debug_eval should begin like this:
    def debug_eval(str, b = get_binding)
    聽聽begin str = str.to_s
    聽聽return "" if str == "$FILENAME"
    聽聽max_time = 10
    聽聽to_inspect = str.gsub(/\\n/, "\n")

ruby-debug to Ruby 1.9
濡傛灉浣跨敤鐨勬槸ruby1.9,鍒?a >Installation: IDE version鍜?a >NetBeans 6.7.1 IDE updates.ruby-debug19 only works on Windows using a RubyInstaller installation,Do not install to a path that has a space inside of it.In both cases, you will also need to download and install the DevKit.
鍘熸潵鍦?a >ruby-debug-ide 0.4.7 鐨剅elease notes閲岃浜嗗師鍥?
Patch by Mark Moseley supporting ruby-debug-base19.
聽 Dynamically installs right ruby-debug-base dependency depending on the
聽 version of a Ruby platform being used. ruby-debug-base19 is the only solution
聽 these days for 1.9 debugging, so might be temporary solution until ruby-debug
聽 projects brings official version.
鍙﹀鍙傝Ruby 2.0 Beta Issue: Error installing ruby-debug-ide19
聽聽聽聽聽聽聽 Debug supported for ruby 1.8.7?

鍦?a >浠庝笅鍗堝紕鍒版繁澶滆繕娌¤В鍐沖叧浜巖uby-debug-ide鐨勯棶棰?/a>鍙戠幇鏈変漢瑙e喅浜?
鎴戣瘯浜嗕笅ruby1.8.6榪樻槸涓嶈錛岃繕鏄姤閭d釜寮傚父銆傛病娉曟崲鎴怤etBeans6.8闆嗘垚鐨刯ruby錛岄泦鎴愮殑jruby涓嚜甯uby-debug-ide錛孫K浜嗐傚湪榪欓噷鎻愮ず涓涓嬶紝涓嶈閫塲ruby.exe瑕侀塲ruby.bat錛屽笇鏈涘閬囧埌鍚屾牱闂鐨勪漢鏈夋墍甯姪銆?br />闂瑙e喅錛岃В鍐蟲楠わ細1.涓嬭澆rubyinstaller錛屽畨瑁咃紱2.涓嬭澆devkit錛岃В鍘嬪埌鏍圭洰褰曞悗錛屼慨鏀?鈥渞uby璺緞鈥漒devkit\msys\1.0.11\etc\fstab涓?br />鈥渞uby璺緞鈥?devkit/gcc/3.4.5/mingw32
鈥渞uby璺緞鈥?devkit/msys/1.0.11/usr/local /usr/local
鐒跺悗鍦ㄥ懡浠よ紿楀彛錛実em install linecache19 榪欎釜瑕佸ソ闀挎椂闂達紝鑰愬績絳夊緟銆傜劧鍚巊em install ruby-debug-ide19錛岃繖涓氨蹇簡銆傝繖灝監K浜嗭紝涓嶈鍦╮ubymine涓畨瑁卹uby-debug-ide19鍜宭inecache19錛屼細鎶ラ敊銆?br />

鏌愪漢鐨?a target="_blank">瑙e喅鍔炴硶:
鍦≧ubyMine閲岃皟璇曟彁紺洪渶瑕佸畨瑁卹uby-debug-ide錛屼絾鏄畨瑁呯殑榪囩▼鏈夐棶棰橈紝鎻愮ず錛?br />聽 ERROR: Failed to build gem native extension.
浜庢槸鎯寵В寮gem鍖咃紝鎶婇噷闈㈢殑extension鍘繪帀銆備絾鏄紪杈戝畬涔嬪悗鍐嶇敤winrar鎵撳寘gem灝辮涓嶅嚭鏉ヤ簡銆傜湅鏉ュ帇緙╃殑鏍煎紡涔熷緢閲嶈銆備簬鏄壘鏉ヤ簡tar鍜実zip涓や釜宸ュ叿錛宼ar榪樺ソ錛岀敤gzip瑙e帇鍜屽帇緙╄繃鐨勬枃浠惰繕鏄涓嶅嚭鏉ャ傚彧鏈夊彟鎯沖埆鐨勫姙娉曚簡銆傜獊鐒舵兂鍒版妸鏂囦歡瑙e帇涔嬪悗錛屽簲璇ュ彲浠ョ敤gem鐨勫伐鍏鋒潵鐢熸垚涓涓猤em瀹夎鏂囦歡鍚с備簬鏄壘浜嗕竴綃囧埗浣済em鐨勬暀紼嬶紝鎶奺xtension鍘繪帀涔嬪悗鍒朵綔浜嗕竴涓猤em錛屽眳鐒跺彲浠ラ『搴忓畨瑁呬簡銆傜劧鍚庨噸鏂版墦寮 RubyMine涔熷彲浠ヨ皟璇曚簡銆?br />
Trying to install ruby-debug-ide on jruby 1.2.0
http://youtrack.jetbrains.net/issue/RUBY-5341
濂藉笘Ruby璋冭瘯鍣ㄤ竴瑙?/a>
涓涓?a >瑙嗛

http://netbeans.org/kb/60/ruby/debugger-screencast.html


201010琛ュ厖:
鏍規湰娌℃湁閭d箞澶嶆潅,
瑁匘evKit,鎶奃evKit\bin璁劇疆涓虹幆澧冨彉閲?鐒跺悗灝卞彲浠ュ湪netbean涓畨瑁呭拰鎵ц浜?br />


leekiang 2010-02-19 23:22 鍙戣〃璇勮
]]>
response_to絳?/title><link>http://www.tkk7.com/leekiang/archive/2010/02/18/313392.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Wed, 17 Feb 2010 18:42:00 GMT</pubDate><guid>http://www.tkk7.com/leekiang/archive/2010/02/18/313392.html</guid><wfw:comment>http://www.tkk7.com/leekiang/comments/313392.html</wfw:comment><comments>http://www.tkk7.com/leekiang/archive/2010/02/18/313392.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/leekiang/comments/commentRss/313392.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/leekiang/services/trackbacks/313392.html</trackback:ping><description><![CDATA[posts_url 聽聽 聽聽聽聽聽聽聽聽聽聽 http://localhost:3000/posts<br />posts_path 聽聽 聽聽聽聽聽聽聽聽聽 /posts<br />new_post_path 聽聽 聽聽聽聽聽聽 /posts/new<br />edit_post_path(post)聽聽聽 /post/:id/edit<br />redirect_to(@post)聽聽聽聽 浼氶噸瀹氬悜鍒?post/:id鍚?涔熷氨鏄痯osts_controller鐨剆how<br /><br />Expected response to be a <:redirect>, but was <200><br />嫻嬭瘯鏃舵姤閿欙紝鍚庡彂鐜版槸嫻嬭瘯閲屾彁渚涚殑鏁版嵁娌℃湁閫氳繃楠岃瘉<br /><img src ="http://www.tkk7.com/leekiang/aggbug/313392.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/leekiang/" target="_blank">leekiang</a> 2010-02-18 02:42 <a href="http://www.tkk7.com/leekiang/archive/2010/02/18/313392.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>嫻嬭瘯redmine鏃舵姤gem緙哄けhttp://www.tkk7.com/leekiang/archive/2010/02/17/313324.htmlleekiangleekiangWed, 17 Feb 2010 12:01:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/17/313324.htmlhttp://www.tkk7.com/leekiang/comments/313324.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/17/313324.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313324.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313324.html榪愯redmine鐨勬祴璇曟椂鎶ラ敊
Missing these required gems:
thoughtbot-shoulda
nofxx-object_daddy
mocha
鍦ㄦ帶鍒跺彴閲屾墽琛実em install mocha
gem install shoulda
鍜実em install object_daddy
鍒癈:\ruby\lib\ruby\gems\1.8\gems涓嬪幓鐪?br />鍙戠幇澶氫簡object_daddy-0.4.1,shoulda-2.10.3鍜宮ocha-0.9.8榪?涓洰褰?br />鍐嶆墽琛屾祴璇曪紝涓嶆姤緙哄皯mocha浜嗭紝浣嗚繕鎶ョ己灝戝彟澶栦袱涓猨ar

鍦╤ttp://www.redmine.org/boards/2/topics/11130鎵懼埌浜嗗姙娉?br />rake gems:install RAILS_ENV=test
浠ヤ笅鏄湪netbeans鎺у埗鍙伴噷杈撳嚭鐨勪俊鎭?br />gem.bat install thoughtbot-shoulda --source http://gems.github.com
Successfully installed thoughtbot-shoulda-2.10.2
gem.bat install nofxx-object_daddy --source http://gems.github.com
Successfully installed nofxx-object_daddy-0.4.1

鐒跺悗鍒癈:\ruby\lib\ruby\gems\1.8\gems涓嬪幓鐪嬶紝鍙戠幇澶氫簡涓や釜鐩綍
nofxx-object_daddy-0.4.1鍜宼houghtbot-shoulda-2.10.2,
濂囨殑鏄笌鍓嶉潰鐩告瘮錛岀洰褰曞悕鍜屽ぇ灝忛兘鍙樹簡銆?br />

leekiang 2010-02-17 20:01 鍙戣〃璇勮
]]>
ruby絎旇http://www.tkk7.com/leekiang/archive/2010/02/17/313261.htmlleekiangleekiangWed, 17 Feb 2010 03:47:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/17/313261.htmlhttp://www.tkk7.com/leekiang/comments/313261.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/17/313261.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313261.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313261.html2,ruby鐨勭鍙?symbol)
聽 symbol閮戒互鍐掑彿浣滀負鍓嶇紑銆俽ails甯稿父鐢ㄧ鍙鋒潵緇欐柟娉曞弬鏁板懡鍚?浠ュ強鐢ㄤ綔hash鐨勯敭銆傝濡傝:
redirect_to :action=>"edit",:id=>params[:id]
3,
class聽Order聽<聽ActiveRecord::Base
聽has_many聽:line_items

def聽self.find_all_unpaid
聽聽聽find(:all,聽
'paid聽=聽0'聽)
聽end

def聽total
聽聽聽sum聽
=聽0
聽聽聽line_items.each聽{
|li|聽sum聽+=聽li.total}
聽end
end
鍦ㄦ柟娉曞墠鍔犱笂"self.",璇ユ柟娉曞氨鍙樹負綾繪柟娉曪紝鍙互鍦ㄧ被灞傞潰涓婄洿鎺ヨ皟鐢?Order.find_all_unpaid

4,瀹炰緥鍙橀噺鐨勫悕瀛椾互"@"寮澶?br />5,鍦╮ails欏圭洰涓?font color="#0000ff">rake doc:app鍙互涓簉ails欏圭洰鍒涘緩html鏍煎紡鐨勬枃妗?鏀懼湪doc/app鐩綍閲屻?br />6,妯″潡(module)涓庣被宸笉澶氾紝鍖哄埆鏄棤娉曞垱寤烘ā鍧楃殑瀹炰緥銆?br />聽 鎴戠殑鎰熻灝辨槸module鏄唬鐮佺墖孌碉紝鍙互鍦ㄤ換浣曠被閲屽紩鍏ヤ綔涓鴻綾葷殑涓閮ㄥ垎銆?br />

leekiang 2010-02-17 11:47 鍙戣〃璇勮
]]>
rails鍔熻兘嫻嬭瘯http://www.tkk7.com/leekiang/archive/2010/02/15/313139.htmlleekiangleekiangMon, 15 Feb 2010 11:22:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/15/313139.htmlhttp://www.tkk7.com/leekiang/comments/313139.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/15/313139.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313139.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313139.html assert_select assert_not_nil assigns(:people)
assigns鏄竴涓壒孌婄殑鍙橀噺銆傚鏋滄偍鍦ㄦ帶鍒跺櫒涓垱寤轟簡涓涓疄渚嬪彉閲忥紝閭d箞榪欎釜鍙橀噺
灝卞彲浠ョ洿鎺ュ湪瑙嗗浘妯℃澘涓嬌鐢ㄣ傝繖涓鏈哄埗鑳屽悗鐨勫師鐞嗗叾瀹炲緢綆鍗曪細Rails棣栧厛閫氳繃鍙嶅皠
灝嗘帶鍒跺櫒涓殑鍙橀噺鎷瘋礉鍒頒竴涓鍣ㄤ腑錛屽叾鍚庡張灝嗚瀹瑰櫒涓殑鍙橀噺鎷瘋礉鍥炶鍥懼疄渚嬨?br />鑰岃繖涓鍣ㄥ叾瀹炲氨鏄笂闈㈡彁鍒扮殑assigns錛屾墍浠ュ墠闈㈢殑鏂█鍙互琚悊瑙d負鈥滄帶鍒跺櫒搴旇
鍒涘緩涓涓悕涓?strong>people鐨勯潪絀哄彉閲忊濄?br />
http://www.javaeye.com/topic/481193
http://www.infoq.com/cn/articles/rails-for-java-excerpt
http://www.ibm.com/developerworks/cn/web/wa-rails4/
http://www.tkk7.com/cap/articles/rails_test.html

鏂頒功Rails Test Prescriptions

leekiang 2010-02-15 19:22 鍙戣〃璇勮
]]>
Flash鈥斺滃姩浣溾濋棿鐨勯氫俊http://www.tkk7.com/leekiang/archive/2010/02/15/313136.htmlleekiangleekiangMon, 15 Feb 2010 10:34:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/15/313136.htmlhttp://www.tkk7.com/leekiang/comments/313136.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/15/313136.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313136.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313136.htmlhttp://www.infoq.com/cn/articles/rails-for-java-excerpt
http://jbf034.javaeye.com/blog/222730

leekiang 2010-02-15 18:34 鍙戣〃璇勮
]]>
鈥滆繃婊ゅ櫒鈥?before,after,around)http://www.tkk7.com/leekiang/archive/2010/02/15/313137.htmlleekiangleekiangMon, 15 Feb 2010 10:34:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/15/313137.htmlhttp://www.tkk7.com/leekiang/comments/313137.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/15/313137.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313137.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313137.html

leekiang 2010-02-15 18:34 鍙戣〃璇勮
]]>
Rails for Java Developershttp://www.tkk7.com/leekiang/archive/2010/02/15/313066.htmlleekiangleekiangSun, 14 Feb 2010 19:19:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/15/313066.htmlhttp://www.tkk7.com/leekiang/comments/313066.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/15/313066.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313066.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313066.htmlJava寮鍙戣呯殑Rails涔嬭礬
Rails for Java Developers


leekiang 2010-02-15 03:19 鍙戣〃璇勮
]]>
rails搴旂敤鐨勮璇佸拰鎺堟潈http://www.tkk7.com/leekiang/archive/2010/02/14/313003.htmlleekiangleekiangSun, 14 Feb 2010 13:00:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/14/313003.htmlhttp://www.tkk7.com/leekiang/comments/313003.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/14/313003.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/313003.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/313003.html聽涓涓甫瀹屾暣鐨凴BAC鎺堟潈緋葷粺鐨剅ails搴旂敤
http://www.javaeye.com/topic/215074

RESTful_ACL


declarative_authorization
aegis
cancan聽聽聽聽聽聽聽聽聽聽 http://github.com/ryanb/cancan
Authologic
acl9聽聽聽聽聽聽聽聽聽聽聽聽 http://github.com/be9/acl9
role_requirement http://github.com/timcharper/role_requirement
ActiveRbac


restful_authentication
1錛宺uby script/plugin install http://svn.techno-weenie.net/projects/plugins/restful_authentication/
欏圭洰鍙抽敭->rails 鎻掍歡->璧勬簮搴撻噷娣誨姞url錛歨ttp://svn.techno-weenie.net/projects/plugins
->鏂版彃浠墮噷鎵懼埌restful_authentication鐒跺悗瀹夎
2, ruby script/generate authenticated user sessions
Right-click on your application in the projects pane and choose 聽
"Generate". In the dialog box that comes up, choose "authenticated" 聽
from the drop-down "Generator" menu near the top, and in the arguments 聽
field enter "user sessions" (without the quotes). Hit OK.
----------------------------------------------------------------------
Don't forget to:

Try these for some familiar login URLs if you like:

map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate', :activation_code => nil
map.signup '/signup', :controller => 'users', :action => 'new'
map.login '/login', :controller => 'sessions', :action => 'new'
map.logout '/logout', :controller => 'sessions', :action => 'destroy'

----------------------------------------------------------------------
聽聽聽聽聽 create聽 app/views/sessions
聽聽聽聽聽 create聽 app/views/users
聽聽聽聽聽 create聽 app/models/user.rb
聽聽聽聽聽 create聽 app/controllers/sessions_controller.rb
聽聽聽聽聽 create聽 app/controllers/users_controller.rb
聽聽聽聽聽 create聽 lib/authenticated_system.rb
聽聽聽聽聽 create聽 lib/authenticated_test_helper.rb
聽聽聽聽聽 create聽 test/functional/sessions_controller_test.rb
聽聽聽聽聽 create聽 test/functional/users_controller_test.rb
聽聽聽聽聽 create聽 test/unit/user_test.rb
聽聽聽聽聽 create聽 test/fixtures/users.yml
聽聽聽聽聽 create聽 app/helpers/sessions_helper.rb
聽聽聽聽聽 create聽 app/helpers/users_helper.rb
聽聽聽聽聽 create聽 app/views/sessions/new.html.erb
聽聽聽聽聽 create聽 app/views/users/new.html.erb
聽聽聽聽聽 create聽 db/migrate/20100218184435_create_users.rb
聽聽聽聽聽 route聽 map.resource :session
聽聽聽聽聽 route聽 map.resources :users

榪愯嫻嬭瘯鏃惰鎶奡essionsControllerTest鍜孶sersControllerTest閮芥敼涓虹戶鎵緼ctionController::TestCase,鍚屾椂鎶奻ixtures :users娉ㄩ噴鎺夈?br />
瑕佷嬌鐢╟urrent_user鍜宭ogged_in? helper鏂規硶鐨勮瘽瑕佸湪ApplicationController閲?span style="">include聽AuthenticatedSystem聽

resource涓巖esources鐨勫尯鍒http://api.rubyonrails.org/classes/ActionController/Resources.html

http://www.javaeye.com/topic/353831
http://www.javaeye.com/topic/177508
http://hideto.javaeye.com/blog/115157
https://github.com/nakajima/roleful


leekiang 2010-02-14 21:00 鍙戣〃璇勮
]]>
rails2.3涓?.2鐨勫尯鍒?/title><link>http://www.tkk7.com/leekiang/archive/2010/02/14/312962.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Sun, 14 Feb 2010 10:51:00 GMT</pubDate><guid>http://www.tkk7.com/leekiang/archive/2010/02/14/312962.html</guid><wfw:comment>http://www.tkk7.com/leekiang/comments/312962.html</wfw:comment><comments>http://www.tkk7.com/leekiang/archive/2010/02/14/312962.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/leekiang/comments/commentRss/312962.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/leekiang/services/trackbacks/312962.html</trackback:ping><description><![CDATA[http://www.pragprog.com/wikis/wiki/ChangesInRails23<br />1錛?app/controllers涓嬬殑application.rb is now application_controller.rb<img src ="http://www.tkk7.com/leekiang/aggbug/312962.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/leekiang/" target="_blank">leekiang</a> 2010-02-14 18:51 <a href="http://www.tkk7.com/leekiang/archive/2010/02/14/312962.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>rails涓婚(theme)http://www.tkk7.com/leekiang/archive/2010/02/14/312950.htmlleekiangleekiangSun, 14 Feb 2010 10:28:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/14/312950.htmlhttp://www.tkk7.com/leekiang/comments/312950.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/14/312950.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/312950.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/312950.html
2,Scribbish

leekiang 2010-02-14 18:28 鍙戣〃璇勮
]]>
rails3http://www.tkk7.com/leekiang/archive/2010/02/14/312936.htmlleekiangleekiangSun, 14 Feb 2010 09:58:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/14/312936.htmlhttp://www.tkk7.com/leekiang/comments/312936.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/14/312936.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/312936.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/312936.htmlhttp://www.pragprog.com/wikis/wiki/ChangesInRails30


leekiang 2010-02-14 17:58 鍙戣〃璇勮
]]>
rails璋冭瘯浠ュ強鏃ュ織http://www.tkk7.com/leekiang/archive/2010/02/14/312881.htmlleekiangleekiangSat, 13 Feb 2010 18:24:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/14/312881.htmlhttp://www.tkk7.com/leekiang/comments/312881.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/14/312881.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/312881.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/312881.htmlconfig.log_level = :debug
config.logger = Logger.new(STDERR)
鍚屾椂鍦╟ontroller閲屽姞涓琛宭ogger.info 'test'
鎴愬姛浜嗭紝浣嗗鎬殑鏄痩og_level璁句負dubug鍜宨nfo娌℃湁鍖哄埆

2, http://wordpress.javaeye.com/blog/134544
rails鐨勬棩蹇楁枃浠跺瓨鍦ㄤ簬app/log涓嬮潰銆傚浜庝笉鍚岀幆澧冧駭鐢熺殑鏃ュ織鍐呭浼氭湁宸埆銆俤evelopment涓嬩細鎶婃瘡嬈″鏁版嵁搴撶殑璁塊棶浠g爜鍖呭惈榪涘幓錛宲roduction浼氱渷鐣ワ紝涓嶈繃涔熸湁寰堝鐨勫唴瀹廣? 濡傛灉鍙笇鏈涘湪production鐜涓嬶紝杈撳叆灝戦噺鐨刲og, 鍒欏彧闇瑕佸湪config/environments/production.rb涓洿鏀癸細
config.log_level = :warn

闄勫甫log level:
Rails鍙互閫氳繃閫夋嫨涓嶅悓鐨刲og level鏉ユ帶鍒秎og鏂囦歡鐨勮緭鍑猴紝鍙互浣跨敤鐨刲og level鏈?debug, :info, :warn, :error, :fatal銆?:debug level鎻愪緵鏈璇︾粏鐨刲og, 鍙互灝嗘瘡涓鏉ql閮借褰曚笅鏉ャ?info level鏄痯roduction鐜涓嬬殑榛樿璁劇疆錛屼笉浼氬啓鍑簊ql鐨勬墽琛屾儏鍐碉紝浣嗕篃浼氬緢璇︾粏錛屽鏋滄槸ActiveMailer錛屽畠浼氳褰曚笅姣忓皝淇$殑鍐呭錛孡og鏂囦歡鍐呭灝辨槸蹇熷闀褲備負浜嗛伩鍏峀og鎶婄┖闂村婊$殑鎯呭喌鍙戠敓錛岃娉ㄦ剰瀹氭湡娓呴櫎Log錛屽彟澶栨槸閫夋嫨:warn level絳塴og level, 鍙褰曢噸瑕佺殑淇℃伅.

鏄惁鍙互榪欎箞璇達細environment.rb瀵逛笁涓幆澧冮兘鐢熸晥,production.rb鍙鐢熶駭鐜鏈夋晥.


3錛屽湪鍗曞厓嫻嬭瘯綾葷殑鏂規硶閲屽姞浜唋ogger.dubug 'test'錛屾墽琛屾祴璇曟椂鎶ラ敊錛屽悗鏀逛負
RAILS_DEFAULT_LOGGER.debug 'test' 鎴愬姛銆?br />

Rails Logging Tips 鈥斺?Rails鍐欐棩蹇楃殑鎻愮ずhttp://www.cgpad.com/SPAN/articles_show/167
http://hlee.javaeye.com/blog/358516


leekiang 2010-02-14 02:24 鍙戣〃璇勮
]]>
rails浜嬪姟http://www.tkk7.com/leekiang/archive/2010/02/14/312873.htmlleekiangleekiangSat, 13 Feb 2010 17:04:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/14/312873.htmlhttp://www.tkk7.com/leekiang/comments/312873.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/14/312873.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/312873.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/312873.html1,around_filter榪涜action鐨勮嚜鍔ㄤ簨鍔″鐞?br />鍦╟ontroller閲岄潰鍙互浣跨敤around_filter鏉ヨ繘琛宎ction鐨勫寘瑁咃紝褰揳ction涓脊鍑哄紓甯哥殑鏃跺欐覆鏌撲竴涓壒孌婄殑鍑洪敊 欏甸潰銆傚皢action浠g爜鍖呰鍦ˋctiveRecord::Base.transaction鍑芥暟鐨刡lock涓墽琛岋紝褰撳紩鍙戝紓甯稿悗鎴幏騫墮噸鏂版姏鍑轟竴涓? ActiveRecord::Rollback寮傚父璁﹔ails灝嗘暟鎹洖婊氭帀銆侫ctiveRecord::Base.transaction瀵? ActiveRecord::Rollback寮傚父澶勭悊鍚庝笉浼氬啀灝嗚寮傚父寰澶栭潰鎶涖?/div>

around_filter :around_action_filter
protected
def transaction
ret = true
ActiveRecord::Base.transaction do
begin
yield if block_given?
rescue Exception => ex
set_notice(ex.message)
ret = ex.message
raise ActiveRecord::Rollback, ex.message
end
end
return ret
end
def around_action_filter
return yield if request.get?
redirect_to(:controller => "error_display", :action => "error_notice") if聽
transaction { yield if block_given? } != true
end

榪欓噷鐨則ransaction鍑芥暟鍙互鐢ㄥ湪action閲岄潰浣滀負鎵嬪姩浜嬪姟澶勭悊鐨勮В鍐沖姙娉曘?br />http://www.cgpad.com/SPAN/articles_show/940


leekiang 2010-02-14 01:04 鍙戣〃璇勮
]]>
netbeans涓嬩嬌鐢╮uby鍜宺ailshttp://www.tkk7.com/leekiang/archive/2010/02/13/312844.htmlleekiangleekiangSat, 13 Feb 2010 10:34:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/13/312844.htmlhttp://www.tkk7.com/leekiang/comments/312844.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/13/312844.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/312844.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/312844.html1 鍦╪etbeans閲屽緩涓涓猺ails欏圭洰,鍚嶄負rubyweblog
2 浣跨敤Scaffold鐢熸垚post妯″瀷鐨勫叏濂楁枃浠?/font>.鍦?欏圭洰"紿楀彛鐨?code style="">rubyweblog欏圭洰涓?/code>鍙抽敭 錛岀偣鍑葷敓鎴?generate),鍦ㄢ淩ails 鐢熸垚鍣ㄢ濆璇濇涓紝浠庘滅敓鎴愨濅笅鎷夊垪琛ㄤ腑閫夋嫨 "scaffold",鍦ㄢ滄ā鍨嬪悕縐扳濇枃鏈涓敭鍏?Post,鍦ㄢ滃睘鎬у鈥濇枃鏈涓敭鍏?title:string 騫跺崟鍑燴滅‘瀹氣濇寜閽?br />聽 璇硶:script/generate scaffold ModelName [field:type field:type]
3 鐢熸垚鏁版嵁搴撳拰琛?/font>
聽 鍦ㄢ滈」鐩濈獥鍙d腑錛屽彸閿崟鍑?rubyweblog 欏圭洰鑺傜偣錛岀劧鍚庝粠寮瑰嚭寮忚彍鍗曚腑閫夋嫨鈥滆繍琛?璋冭瘯 Rake 浠誨姟鈥?浠庘滃尮閰嶄換鍔♀濆垪琛ㄤ腑閫夋嫨 db:create 騫跺崟鍑燴滃畬鎴愨?榪欐椂浼氬湪mysql涓敓鎴愬紑鍙戝簱.榪欎竴姝ヤ篃鍙互鎵嬪伐鍋?涔熷氨鐩稿綋浜?font color="#0000ff">rake db:create

聽 鍦ㄢ滈」鐩濈獥鍙d腑錛屽彸閿崟鍑?rubyweblog 鑺傜偣騫墮夋嫨鈥滆縼縐繪暟鎹簱鈥?gt;鈥滆嚦褰撳墠鐗堟湰鈥?榪欐牱浼氱敓鎴愯〃緇撴瀯銆?br />4 淇敼"routes.rb" , 鎵懼埌# map.root :controller => "welcome" 榪欎竴琛?鍙栨秷娉ㄩ噴璇ヨ騫跺皢鎺у埗鍣ㄦ洿鏀逛負 "posts"銆傚垹闄ublic涓嬬殑index.html錛孯ails 灝嗗湪 routes.rb 涓鎵鵑渶瑕佹樉紺虹殑欏甸潰銆傜劧鍚庡氨鍙互榪愯浜嗐?br />5 鍚憄osts 琛ㄤ腑娣誨姞涓涓?code style="">body
瀛楁
聽 鍙抽敭鍗曞嚮鈥滄暟鎹簱榪佺Щ鈥濊妭鐐癸紝騫朵粠寮瑰嚭鑿滃崟涓夋嫨鈥滅敓鎴愨?榪欏皢鎵撳紑鈥淩ails 鐢熸垚鍣ㄢ濆璇濇錛屽畠宸茬粡鍦ㄢ滅敓鎴愨濅笅鎷夊垪琛ㄤ腑閫夋嫨浜嗚縼縐?migration),褰撶劧涔熷彲浠ュ湪欏圭洰涓婂彸閿?gt;鐢熸垚>migration銆?br />聽 鍦ㄢ滃弬鏁扳濇枃鏈涓緭鍏?AddBodyToPost body:text,鍏朵粬榛樿錛屽崟鍑燴滅‘瀹氣濄?font color="#ff0000">榪欎釜"AddBodyToPost"鍙槸涓涓悕瀛椼?/font>
聽 IDE浼氬垱寤轟竴涓彈鐗堟湰鎺у埗鐨勮縼縐昏剼鏈傝鑴氭湰鐨勫悕縐頒互鏃ユ湡鍜屾椂闂村紑澶達紝騫朵互 add_body_to_post.rb 緇撴潫銆傚湪欏圭洰涓婂彸閿夋嫨鈥滆縼縐繪暟鎹簱鈥?gt;鈥滆嚦褰撳墠鐗堟湰鈥濓紝鎴栬呭湪婧愭枃浠朵腑鍙抽敭鐐瑰嚮鈥滆繍琛屾枃浠垛濓紙榪欐椂瑕佸皬蹇冿紝鍙兘浼氶犳垚鏁版嵁涓㈠け錛?br />聽 淇敼new.html.erb銆乪dit.html.erb鍜宻how.html.erb,澧炲姞涓庢柊瀛楁鐩稿叧鐨勭綉欏典唬鐮併?br />
鐢熸垚嫻嬭瘯搴撲笌鐢熸垚寮鍙戝簱綾諱技錛屽湪鈥滈」鐩濈獥鍙d腑錛屽彸閿崟鍑?rubyweblog欏圭洰錛岀劧鍚庨夋嫨鈥滆繍琛?璋冭瘯 Rake 浠誨姟鈥濓紝鍦ㄢ滃弬鏁扳濇枃鏈涓敭鍏?RAILS_ENV=test,鎵懼埌騫跺弻鍑?db:create 鏉$洰錛屼互榪愯浠誨姟錛屼粠鑰屽垱寤?rubyweblog_test 鏁版嵁搴?鎺ョ潃鎵懼埌騫跺弻鍑?db:test:prepare 鏉$洰銆?font color="#ff0000">鎴戣寰?db:test:prepare 鍙互涓嶆墽琛岋紝鍥犱負鐐瑰嚮欏圭洰鍙抽敭"嫻嬭瘯"鏃朵細鑷姩鎵цdb:test:prepare鍜宺ake db:fixtures:load
銆?br />
http://cn.oiax.jp/rails/rails_step_by_step/rails_step1.html璇翠簡config/routes.rb鏈熬闄勮繎鐨勪互涓嬩袱琛屽彲浠ュ垹鎺夛紝璇曚簡鏋滅劧濡傛
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'


http://zh-cn.netbeans.org/kb/docs/ruby/quickstart.html



leekiang 2010-02-13 18:34 鍙戣〃璇勮
]]>
rake,gemhttp://www.tkk7.com/leekiang/archive/2010/02/13/312843.htmlleekiangleekiangSat, 13 Feb 2010 10:32:00 GMThttp://www.tkk7.com/leekiang/archive/2010/02/13/312843.htmlhttp://www.tkk7.com/leekiang/comments/312843.htmlhttp://www.tkk7.com/leekiang/archive/2010/02/13/312843.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/312843.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/312843.htmlruby涔嬮棿鐨勫紩鐢ㄥ叏閮ㄦ槸婧愪唬鐮佺殑寮曠敤錛屼負浜嗚鑼冪被搴撶殑綆$悊錛実ems鍑虹幇浜嗐?
gems鏄痳uby婧愪唬鐮佺鐞嗗伐鍏鳳紝浠g爜鎸夌収涓瀹氱殑鐩綍緇撴瀯琚粍緇囨垚涓涓猯ib銆?br />璇﹁http://www.javaeye.com/topic/320384
Gem鏄涓夋柟Ruby搴擄紝netbeans鎻愪緵浜哛uby Gems綆$悊鍣紝鍙互鐢ㄦ潵娣誨姞鍜岀淮鎶em,Tools > Ruby Gems銆?br />rails鍜宺ake絳夐兘琚玶ubygems綆$悊銆?br />

聽 鏌ョ湅鏈満鐨刧ems:聽 gem list聽--local聽
鐪嬬湅rubyforge.org涓婄殑gems:聽 gem聽list聽--remote
聽 鍒犻櫎鏌愪釜鐗堟湰鐨刧em錛屼緥濡俫em uninstall rails -v=2.3.4

鏈変竴鏈功鍙?lt;Ruby Gems寮鍙戝疄鎴?gt;

2,
Rake(http://rake.rubyforge.org)鏄竴闂ㄦ瀯寤鴻璦錛屽拰make(www.gnu.org/software/make/)
ant(http://ant.apache.org)寰堢浉鍍忋俁ake鏄敤Ruby鍐欑殑錛屽畠鏀寔瀹冭嚜宸辯殑DSL鐢ㄦ潵澶勭悊鍜岀淮鎶?br /> Ruby搴旂敤紼嬪簭銆俁ails鐢╮ake鐨勬墿灞曟潵瀹屾垚澶氱涓嶅悓鐨勪換鍔?
璇﹁http://www.javaeye.com/topic/300375
rake鏁欑▼:http://railsenvy.com/2007/6/11/ruby-on-rails-rake-tutorial
聽聽聽 緲昏瘧:http://hi.baidu.com/%D0%C7203/blog/item/ebda2dd09f1d698ea1ec9c7a.html




leekiang 2010-02-13 18:32 鍙戣〃璇勮
]]>
netbeans絎旇http://www.tkk7.com/leekiang/archive/2009/02/14/254629.htmlleekiangleekiangFri, 13 Feb 2009 17:17:00 GMThttp://www.tkk7.com/leekiang/archive/2009/02/14/254629.htmlhttp://www.tkk7.com/leekiang/comments/254629.htmlhttp://www.tkk7.com/leekiang/archive/2009/02/14/254629.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/254629.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/254629.html聽 浠g爜鑷姩瀹屾垚:Ctrl+鍙嶆枩綰?br />


2,璁劇疆
聽 1)濡傛灉瑙夊緱NetBeans緙虹渷鐨勫伐鍏鋒爮鎸夐挳澶ぇ錛屽彲浠ュ彸閿偣鍑誨伐鍏鋒爮錛屼粠涓嬫媺鑿滃崟涓夋嫨Small Toolbar Icons
榪樺彲浠ラ夋嫨"鍐呭瓨"錛屼細鍦ㄥ伐鍏鋒爮鏄劇ず鍐呭瓨鍗犵敤鎯呭喌銆?br />聽 2)璁劇疆瀛椾綋:
Tools->Options->Fonts & Colors,鍦ㄥ乏杈圭殑綾誨埆Category涓嬮夋嫨緙虹渷(Default),鍐嶉夋嫨瀛椾綋錛岀劧鍚庝繚瀛樸?涓瀹氳閫変竴涓狢ategory錛屽洜涓哄垰榪涙潵鏃墮粯璁ょ殑綾誨埆鏄?絀虹櫧"錛屼細瀵艱嚧鎹簡瀛椾綋涔熶笉浼氱敓鏁?銆傚彲鑳戒腑鏂囦細涔辯爜,鎵浠ヨ繕瑕佷慨鏀笴omment,String榪欎袱涓被鍒?br />鎴戠殑瀛椾綋璁劇疆
languages:all languages
Category:Default聽聽 Font:Courier New 13
Category:Comment聽聽 Font:Dialog 12
Category:String 聽聽 Font:Dialog 12
聽 3)鎺у埗鍙板嚭鐜頒貢鐮?br />鍦∟etbeans鐨勫畨瑁呯洰褰曚笅鐨別tc鐩綍涓嬫湁涓涓猲etbeans.conf錛?font color="#000000">鍦?/font>netbeans_default_options寮曞彿鍐呭姞涓?/font>"-J-Dfile.encoding=UTF-8" 灝卞彲浠ヤ簡! 鍏跺畠姣斿瀛椾綋澶у皬涔熷彲浠ュ湪榪欓噷璋冩暣.濡? --font-size:12灝卞彲浠ヤ簡!
-J-Duser.language=en -J-Duser.country=US 鑻辨枃鐣岄潰鍚姩
聽 4)erb鏂囦歡
# coding: utf-8

鍦?欏圭洰"紿楀彛涓樉紺虹墿鐞嗙粨鏋?榛樿鏄昏緫緇撴瀯):
tools->Miscellaneous(鍏朵粬)->ruby鏍囩欏?>鍙栨秷"鏄劇ず閫昏緫欏圭洰瑙嗗浘"錛岀劧鍚庨噸鍚?br />
3,
maven椋庢牸鐨勯」鐩粨鏋?http://www.javaeye.com/topic/274136?page=5

4錛屼笌eclipse鍏變韓宸ョ▼
http://tech.ddvip.com/2008-12/122916148599857.html
http://tech.ddvip.com/2008-12/122880588198603.html

5錛屾湁浜鴻鍦╨inux涓嬭繖鏍瘋緗竴涓嬬晫闈㈡瘮杈冨ソ鐪嬶細
鍦╪etbeans 鍦ㄥ畨瑁呯洰褰曚笅鎵懼埌 etc/netbeans.conf 鐒跺悗鍦╪etbeans_default_options 娣誨姞鍙傛暟
-J-Dswing.aatext=true --locale en:US
聽 鏉ユ簮:http://www.tkk7.com/gml520/archive/2010/04/16/318507.html


leekiang 2009-02-14 01:17 鍙戣〃璇勮
]]>
rails璁板綍http://www.tkk7.com/leekiang/archive/2008/12/03/244052.htmlleekiangleekiangTue, 02 Dec 2008 18:53:00 GMThttp://www.tkk7.com/leekiang/archive/2008/12/03/244052.htmlhttp://www.tkk7.com/leekiang/comments/244052.htmlhttp://www.tkk7.com/leekiang/archive/2008/12/03/244052.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/244052.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/244052.htmlhttp://www.railsinside.com/elsewhere/100-7-barebones-rails-apps-to-kick-start-your-development-process.html
聽 涓嬭澆bort錛屾斁鍒皀etbeans6.5涓紝璁劇疆涓轟富欏圭洰錛屽惎鍔ㄦ姤閿欙紝絎竴嬈℃姤capistrano鐨勯敊璇紝鎴戝湪environment.rb涓妸閭e嚑涓猚onfig.gem灞忚斀浜嗐傛帴鐫鍙堟姤 `load_missing_constant': uninitialized constant Authorization::AasmRoles::AASM (NameError) 錛屾垜鐓х潃http://rails_security.lighthouseapp.com/projects/15332/tickets/10-uninitialized-constant-authorization-aasmroles-aasm-nameerror榪欎釜閾炬帴閲岀殑鍋氭硶
鍦╝pplication.rb鐨凙pplicationController閲屽姞浜嗕竴琛?font color="#0000ff">require 'aasm'錛?font color="#000000">鐒跺悗灝卞彲浠ュ惎鍔ㄤ簡銆傛墽琛宺uby db/migrate,閲嶅惎鍚庯紝棣栭〉鑳借繘錛屼絾娉ㄥ唽涓涓敤鎴鋒彁浜ゅ悗鎶?/font>

Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
榪欎釜鍙戠敓鍦╝pp/views/users/new.html.erb
鏆傛椂灝卞埌榪欓噷浜嗭紝浠ヤ笂澶у涓嶆噦錛屽厛浣滀釜璁板綍銆?br />
2錛岃繖鏄竴涓熀浜?.2.2鐨勪緥瀛?鍚嶅彨starter
http://github.com/josevalim/starter/tree/master/app
鍙互鍦╣ithub閲屾悳2.2.2錛屾垨鍦╟ode search閲屾悳绱AILS_GEM_VERSION = '2.2.2'錛屼互瀵繪壘鍩轟簬2.2.2鐨勪緥瀛愩?br />http://github.com/brainopia/shop/tree/master
http://github.com/ccjr/play-eoj/tree/master
http://github.com/Radar/rboard/tree/master
http://github.com/rbarazi/simple_blog/tree/master
http://github.com/csiszarattila/webshop/tree/master
http://github.com/bushymark/depot/tree/master

榪愯starter,鍗存姤
Missing these required gems:
聽 win32console
聽 ruby-debug
聽 ruby-prof

鐒跺悗
starter>rake gems:install
(in c:/starter)
rake aborted!
no such file to load -- spec/rake/spectask
C: /starter/rakefile:10
(See full trace by running task with --trace)




leekiang 2008-12-03 02:53 鍙戣〃璇勮
]]>rails鐭ュ悕搴旂敤鍜屽伐鍏?/title><link>http://www.tkk7.com/leekiang/archive/2008/12/01/243602.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Sun, 30 Nov 2008 18:30:00 GMT</pubDate><guid>http://www.tkk7.com/leekiang/archive/2008/12/01/243602.html</guid><wfw:comment>http://www.tkk7.com/leekiang/comments/243602.html</wfw:comment><comments>http://www.tkk7.com/leekiang/archive/2008/12/01/243602.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/leekiang/comments/commentRss/243602.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/leekiang/services/trackbacks/243602.html</trackback:ping><description><![CDATA[1,<em>鍗氬,cms綾?br />聽 Mephisto 宸插崌鍒?.2.2錛?/em><em><br />聽 typo 宸插崌綰ц嚦2.3.5<br /></em><em>聽 radiantcms 鍐呭綆$悊</em><br />聽 rubricks<br />聽 refinerycms<br />聽 locomative<br /><em>聽 simplelog:http://simplelog.net<br />聽 1stlog鏄竴涓拡瀵逛腑鍥界敤鎴峰紑鍙戠殑鍩轟簬RubyOnRails鐨凚log緋葷粺<br />聽 http://www.h3rald.com/articles/rails-os-killer-apps<br />2錛岄」鐩鐞?br /></em>聽聽 Redmine 2.3.5<br />聽聽 retrospectiva聽 http://retrospectiva.org/聽 2.3.5<br />聽聽 Teambox<br />聽聽 Clocking IT 鍔熻兘鏇翠負寮哄ぇ<br />3錛岃鍧?br />聽 beast錛宺forum<br />聽 beast鏀歸犵増:http://code.google.com/p/savage-beast-2/<br />聽聽聽聽聽聽聽聽聽聽聽聽聽 http://github.com/courtenay/altered_beast<br />聽 rboard:https://github.com/radar/rboard<br />4,SNS<br />https://github.com/insoshi/insoshi<br />https://github.com/stevenbristol/lovd-by-less錛宒emo瑙乭ttp://try.lovdbyless.com/聽聽 <br />https://github.com/bborn/communityengine聽 瑙乭ttp://communityengine.org/<br />https://github.com/timothyf/EngineY<br />涔?br />銆奝ractical Rails Social Networking Sites銆?br />銆奟ailsSpace: Building a Social Networking Website with Ruby on Rails銆?br /><br /><em>5錛岃繘閿瀛?br />http://hamster.rubyforge.org/index.htm<br />Spree http://spreehq.org/聽 宸插崌綰ц嚦2.3.5<br />gal聽 http://gal.railsplayground.com/<br />聽聽聽聽 http://sourceforge.net/projects/gal<br />聽聽聽聽 https://gal.svn.sourceforge.net/svnroot/gal/trunk/<br />http://www.javaeye.com/news/5718-23-best-open-source-ruby-on-rails-application<br />6,</em><em>substruct</em><br /><em>http://code.google.com/p/</em><em>substruct</em><em>/<br /><br />tracks 涓漢鏃墮棿綆$悊? http://www.getontracks.org 2.2.2<br /><br /><br />6 CRM,erp<br />fat_free_crm http://www.fatfreecrm.com/聽 鐩墠鍩轟簬2.3.4,浼間箮娌℃湁鍗曞厓嫻嬭瘯<br /></em><em>extrails</em><br /><em>http://sourceforge.net/projects/extrails/<br />http://code.google.com/p/pa-manager/<br />瀹樼綉涓篽ttp://www.ev-manager.com<br /><br />鏂囨。綆$悊<br />http://github.com/bruparel/file_manager<br /><br />閭歡<br />mailr<br /><br />紺句細鍖栫綉緇?br />Community Engine聽 http://communityengine.org/<br />onebody聽聽 insoshi<br />openmind<br />http://www.blog.railshouse.com/2009/04/17/Top-Open-Source-Ruby-On-Rails-Projects<br /><br />7錛?/em>Rools is a pure Ruby rules-engine.<br />8錛宱penWFEru is an open source Ruby workflow and <span id="ptphtrz" class="caps">BPM</span> engine銆傚張鍚?em>Ruote</em><br />9錛孲preadsheet can read, write and modify Spreadsheet Documents<br /><em>10錛?/em><em>sequel</em><br /><em>http://www.infoq.com/cn/news/2008/12/sequel-ruby-db-toolkit<br />11錛孯ails聽 Metal鏄竴涓洿緇曚竴鑸琑ack涓棿浠剁殑灝佽wrapper錛岃兘澶熸斁鍦≧ails璇鋒眰鐨勫墠闈㈠茍浣跨敤Rails鐨剆ession銆侻etal鐨勫嚭鐜扮粰璁㏑ails搴旂敤鐨勮繍琛岄熷害鏋佸ぇ鍔犲揩錛屽茍涓旇兘澶熸瘡縐掗挓鍚屾椂澶勭悊鎴愬崈涓婁竾鐨勫簲鐢?br /><br />12,rubycas-server聽 鍗曠偣鐧誨綍<br />聽聽 http://chinaonrails.com/topic/view/1610.html<br />聽 http://code.google.com/p/rorjossoagent/聽聽 </em>destinyd.war@gmail.com<br /><em><br />13,</em><a >璇村埌宸ヤ綔嫻佸紩鎿?/a>錛宺uby鐨剆tate machine闈炲父涓嶉敊錛屽湪鍔熻兘/寮鍙戞晥鐜?鍙墿灞曟х瓑鏂歸潰錛屾病鏈変換浣曚竴涓紑婧愮殑java宸ヤ綔嫻佸紩鎿庡彲浠ュ拰瀹冨緹庯細 <br /><a target="_blank">http://github.com/pluginaweek/state_machine/tree/master</a><br />http://www.javaeye.com/topic/362207<br /><br />http://www.tkk7.com/cap/archive/2005/07/17/7895.html<br />Graphviz鐨勪富欏靛湪<a >http://www.graphviz.org/</a> 錛?浠栨槸AT&T Labs-Research寮鍙戠殑鍥懼艦緇樺埗宸ュ叿,聽 浠栧彲浠ュ緢鏂逛究鐨勭敤鏉ョ粯鍒剁粨鏋勫寲鐨勫浘褰㈢綉緇滐紝鏀寔澶氱鏍煎紡杈撳嚭錛?鐢熸垚鍥劇墖鐨勮川閲忓拰閫熷害閮戒笉閿?br /><br />acts_state_machine<br /><br />14,Bort<br /><span id="repository_description" rel="/fudgestudios/bort/edit/update" class="">A base rails app featuring: RESTful Authentication, Will Paginate, Rspec &amp; Rspec-rails, Exception Notifier, Asset Packager, Cap Recipe (multi-stage).</span><br />15 sinatra 寰瀷web妗嗘灦<br />16 pony 鍙戦偖浠?br />17 rest-client浠f浛ActiveResource<br />18 鎶ヨ〃 ruport聽聽 rails21-book聽聽 <span id="h8m.5" style="font-family: Arial;" class="Apple-style-span"><span id="hl9l" style="font-family: Lucida; line-height: 16px;" class="Apple-style-span">Prawn聽聽 </span></span>ActvieFPDF<br /><font color="red">聽聽 <a >HowtoGeneratePDFs</a></font><span id="h8m.5" style="font-family: Arial;" class="Apple-style-span"><span id="hl9l" style="font-family: Lucida; line-height: 16px;" class="Apple-style-span"><br />聽聽 http://wiki.rubyonrails.org/rails/pages/HowtoIntegrateJasperReports<br />19 Radiant錛氫竴涓《灝栫殑鍩轟簬Rails鐨凜MS<br />20 </span></span>Mongrel<br />聽聽 http://chinaonrails.com/topic/view/206.html<br />聽聽 Mongrel 鏄竴涓猺uby鐨剋ebserver鍜岀被搴? Mongrel鐨勭壒鑹插氨鏄揩錛屽畠姣攔uby鑷甫鐨剋eb server榪樻湁鍏朵粬鐨剋ebserver閮借蹇傛妸紼嬪簭閮ㄧ講鍒拌繖涓笂闈㈡槸浼氱粰浣犲甫鏉ラ熷害涓婄殑鎯婂枩鐨勩? 鍙﹀浣犱篃鍙互鍦╮uby紼嬪簭涓洿鎺ヤ嬌鐢╩ongrel錛屽紑鍙戝睘浜庤嚜宸變笓鐢ㄧ殑web server銆俶ongrel鐨勫畨瑁呰秴綰х畝鍗曪紝鍒繕浜嗕粬鏄敤rubygems鎵撳寘鐨勶紝涓涓懡浠ゅ畬鍏ㄦ悶瀹氥?gem install mongrel <br /> 鍦ㄦ垜浠粙緇嶇殑浜斾釜姝﹀櫒鎬籱ongrel鏄敮涓鐨勪竴涓被搴撱備粬鏄紑鏀炬簮浠g爜鐨勩備粬鏄竴涓緢濂界殑鏁欐垜浠浣曟妸鑷繁鐨勪駭鍝佹墦鍖咃紝甯傚満鍖栥傚綋鐒朵粬鏈鍚稿紩鐨勫氨鏄粬鐨勪綔鑰呬粠涓暀緇欐垜浠浣曞啓涓涓被搴撱?<br /><br />21聽 InstantRails錛屼竴涓狝ll In One鐨勫浠訛紝鍙互甯姪浣犲揩閫熸惌寤篟uby On Rails寮鍙戠幆澧?br /><br />22聽 Adhearsion is a new way to write voice-enabled applications. It's not just an API or library 鈥?it's a <strong>fully-featured framework</strong>, the first of its kind, designed for maximal code reuse and intuitiveness. The name "Adhearsion" is a combination of "adhesion" and "hear" because Adhearsion shines best when integrating technologies with voice.<br /><br />23 http://www.h3rald.com/articles/rails-os-killer-apps<br /><br />24 Shoes鍙槸鐜╁叿錛岃鐢≧uby榪涜蹇烥UI寮鍙戯紝璇風敤wxRuby+wxSugar<br />聽聽 http://quake.javaeye.com/blog/295829<br /><br />25 鏉冮檺鎻掍歡<br />http://github.com/binarylogic/authlogic/tree/master<br /><br />26 鏌ヨ<br />http://www.javaeye.com/topic/585348<br />http://book.csdn.net/bookfiles/879/10087927419.shtml<br />http://www.javaeye.com/topic/241343 <a >Searchgasm</a>聽 searchlogic<br />Where鎻掍歡聽 ostruct<br /><a >simple_column_search</a> http://doruby.kbmj.com/tn_on_rails/20100120/<br /><br />27,<Rails楂樼駭緙栫▼><br /><br />28,<font size="-1"><font color="#c60a00">Camping</font>灝嗚嚜宸卞畾涔変負涓唬鐮侀噺淇濇寔鍦?k瀛楄妭澶у皬浠ヤ笅Web寮鍙戞鏋惰繖涓」鐩凡鍒涘緩浜?2涓湀騫剁敱 whytheluckystf緇存姢涓畬鏁磜eb搴旂敤鍙互鍦ㄥ崟鏂囦歡涓畾涔夊悓鏃墮伒寰狹VC妗嗘灦(榪欎嬌寰梬eb搴旂敤浠ュ悗鏇存槗浜庣Щ妞?鍒?font color="#c60a00">Rails</font>鐨勪笂)<font color="#c60a00">Camping</font>浣跨敤ActiveRecord浣滀負ORM瑙e喅鏂規</font><br /><br />29,nokogiri 瑙f瀽xml錛岀敤娉曠被浼間簬jquery<br /><br />30錛宮ini_magick澶勭悊鍥劇墖<br /><br />31,rcov<br />鏄嬌浣犵殑紼嬪簭涓嶇粡甯稿穿婧冪殑鐞嗙敱涔嬩竴銆?瀹冨垎鏋愪綘鐨勪唬鐮侊紝 楂樹寒鏄劇ず浣犵殑嫻嬭瘯浠g爜閬楁紡鐨勯儴鍒嗐?瀹冮熷害蹇紝 涓嶅崰璧勬簮錛?騫朵笖鑳藉噺杞誨ご鐥?錛?<br /><br />32,hpricot 鏄竴涓揩閫熴佸鏄撲笂鎵嬬殑 HTML 鍒嗘瀽鍣ㄣ?濡傛灉浣犲彂鐜拌嚜宸遍渶瑕佽В鏋?HTML 鎶戞垨 XML 鐨勫唴瀹癸紝 hpricot 鏄渶綆鎹風殑鏂規硶涔嬩竴<br /><br />33,Capistrano 鏄?Rails 搴旂敤紼嬪簭寮鍙戞洿鍔犱粠瀹廣?瀹冭繕鏄竴涓敤鏉ュ拰榪滅▼鏈嶅姟鍣ㄤ氦浜掔殑鑱槑鐨?framework 銆?浜嬪疄涓婃垜宸茬粡澶囦喚浜嗙敤 Capistrano 鍐欑殑浠g爜錛?浣滀負 Rake/Net::SSH 鎴栬?shell 浠g爜涔嬪鐨勫彟涓涓夋嫨銆?br /><br />34,Turn 浣夸綘鐨?Test::Unit 杈撳嚭鏇存槗璇匯?Turn 涔熻鐪嬭搗鏉ヤ笉閭d箞鎷涗漢鍠滄錛?浣嗗畠紜疄瀵歸槄璇繪祴璇曠粨鏋滄湁寰堝ぇ甯姪銆?鍦ㄧ淮鎶?Helicoid 鐨勬椂鍊欐垜瀵規祴璇曚弗閲嶄緷璧栵紝 鎵浠ヤ換浣曡兘浣胯繖欏瑰伐浣滃彉寰楁洿綆媧佺殑涓滆タ鎴戦兘涔愪簬灝濊瘯銆傝瀹夎 turn錛?浣跨敤 gem install turn 鍛戒護銆?br /><br />35, scruffy鍜孏ruff鍙敤鏉ヤ駭鐢熷浘褰?br /><br />36, rubyscript2exe鍜孍xerb鍙互緙栬瘧涓篹xe鏂囦歡,鍚庤呯敓鎴愮殑鏂囦歡灝忥紝濡傛灉鍚庤呯敓鎴愮殑榪愯涓嶄簡鍙互璇曞墠鑰呫?br /><br />37錛?JRails灝辨槸鐢╦Query鏇夸唬Prototype/script.aculo.us鍦≧ails鍋?helpers瀹炵幇javascript鐨勫姛鑳?br />聽聽聽聽 http://kyoleelqh.javaeye.com/blog/250514<br /><br />38,GNMS鏄竴涓綉緇滅鐞嗙郴緇燂紝鍥懼艦鍖栧伐鍏鳳紝鐢ㄤ簬鐩戞祴緗戠粶鍏冪礌鐨勭姸鎬?br />39錛孭lugin to kill N+1 queries<br />聽聽聽 http://github.com/flyerhzm/bullet聽聽 destinyd_ror@163.com<br /><br />http://www.opensourcerails.com<br /><em><br />http://www.infoq.com/cn/articles/changing-the-present-case-stud<br />http://www.roredu.com/rubyrails/category/ruby-on-rails-item/<br />http://www.javaeye.com/news/1993<br />http://hqmank.blog.bokee.net/bloggermodule/blog_viewblog.do?id=532562<br />http://www.opensourcerails.com/<br />http://www.practicalecommerce.com/blogs/post/432-Multiple-Attachments-in-Rails<br /></em><img src ="http://www.tkk7.com/leekiang/aggbug/243602.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/leekiang/" target="_blank">leekiang</a> 2008-12-01 02:30 <a href="http://www.tkk7.com/leekiang/archive/2008/12/01/243602.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>rails絎旇http://www.tkk7.com/leekiang/archive/2008/11/30/243501.htmlleekiangleekiangSat, 29 Nov 2008 22:11:00 GMThttp://www.tkk7.com/leekiang/archive/2008/11/30/243501.htmlhttp://www.tkk7.com/leekiang/comments/243501.htmlhttp://www.tkk7.com/leekiang/archive/2008/11/30/243501.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/243501.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/243501.html聽 鍦ㄥ凡瀛樺湪鐨勮〃鐨刢reate_table鐨勫弬鏁頒腑錛屽姞涓?:force => true錛屽涓嬶細
聽 create_table聽:products,聽:force聽=>聽truedo|t|聽
2錛岄獙璇?br />http://www.36sign.com/blog/working/ror-validation-problem.html
http://cvu.javaeye.com/blog/78066
3錛屽垎欏?br />will_paginate
涓嬭澆:http://github.com/mislav/will_paginate/wikis/installation
http://hideto.javaeye.com/blog/108118
http://trace.javaeye.com/blog/156736
http://www.cnblogs.com/ayuan/archive/2008/03/12/1102001.html
http://www.ruby-lang.org.cn/forums/thread-985-1-1.html
http://hi.baidu.com/%D0%C7203/blog/item/30f334ecd0a319d72e2e212c.html


leekiang 2008-11-30 06:11 鍙戣〃璇勮
]]>
鐢ㄥ嚑鍙uby浠g爜鍒蜂漢姘?杞?http://www.tkk7.com/leekiang/archive/2008/04/05/190899.htmlleekiangleekiangSat, 05 Apr 2008 05:04:00 GMThttp://www.tkk7.com/leekiang/archive/2008/04/05/190899.htmlhttp://www.tkk7.com/leekiang/comments/190899.htmlhttp://www.tkk7.com/leekiang/archive/2008/04/05/190899.html#Feedback0http://www.tkk7.com/leekiang/comments/commentRss/190899.htmlhttp://www.tkk7.com/leekiang/services/trackbacks/190899.html require聽 ' net/http '

count聽
= 1 .. 100000 聽聽 # 聽define聽an聽array

count.each{聽聽聽聽聽聽
# 聽each聽
| index | 聽聽聽聽聽聽聽聽聽聽聽聽聽 # 聽element聽is聽index聽聽1聽2聽3聽4聽5聽6
printf聽 " #{index}聽 " # print聽index聽and聽space
h聽 = 聽Net::HTTP.new( ' space.cnblogs.com ' , 80 )聽 # 聽create聽a聽object
resp,聽data聽 = 聽h.get( ' /group/topic/1605/ ' ,nil)聽 # 聽get聽
if 聽resp.code聽 != " 200 " # 聽if聽http聽response聽status聽code聽not聽is聽200聽
聽聽puts聽resp.code聽聽聽聽 # put聽status聽code
聽聽puts聽resp.message聽 # put聽status聽message
聽聽
聽聽resp.each{聽聽聽聽
# put聽headers
聽聽 | key,聽val |
聽聽puts聽
" #{key}\t\t\t#{val} "
聽聽}
聽聽
聽聽p聽data聽聽聽聽
# put聽html
聽聽 break # 聽break聽the聽eache
end
# sleep(1)聽#sleep聽聽use聽second聽do聽inteval
}

鏉ユ簮:http://www.cnblogs.com/coderlee/archive/2008/03/25/1121652.html

leekiang 2008-04-05 13:04 鍙戣〃璇勮
]]> 主站蜘蛛池模板: 久久国产色AV免费看| 一级做a毛片免费视频| 久久九九AV免费精品| 亚洲中文字幕无码一久久区| 免费大片av手机看片高清| 国产成人高清精品免费鸭子| 久久精品国产亚洲AV天海翼| 亚洲Aⅴ无码一区二区二三区软件| 久久综合亚洲色hezyo| 免费乱理伦在线播放| 一个人晚上在线观看的免费视频| 国产亚洲精品AA片在线观看不加载| 国产在线观看免费av站| 亚洲欧洲国产日韩精品| 免费99精品国产自在现线| 亚洲色丰满少妇高潮18p| 全部免费国产潢色一级| 一级免费黄色毛片| 亚洲AV无码久久精品色欲| 国产曰批免费视频播放免费s| 亚洲熟妇自偷自拍另欧美| 免费在线精品视频| 可以免费观看的国产视频| 激情内射亚洲一区二区三区| 成人无码区免费视频观看| 免费人成网上在线观看| 久久亚洲AV午夜福利精品一区 | 2021在线观看视频精品免费| 在线观看亚洲AV日韩A∨| 亚洲A∨精品一区二区三区| 男人j进入女人j内部免费网站| 亚洲视频网站在线观看| 精品久久免费视频| 国产免费AV片在线观看| 国产成人精品日本亚洲专| 亚洲人午夜射精精品日韩| 69堂人成无码免费视频果冻传媒| 国产成人亚洲综合a∨| 亚洲欧洲国产精品你懂的| 日日AV拍夜夜添久久免费| 永久免费A∨片在线观看|