Highlights in Rails 3.2: Faster Development Mode New Routing Engine Automatic Query Explains Tagged Logging These release notes cover only the major changes. To learn about various bug fixes and changes, please refer to the changelogs or check out the list of commits in the main Rails repository on GitHub. 1 Upgrading to Rails 3.2If you're upgrading an existing application, it's a great idea to ha
2012å¹´10æ11æ¥17:39 Ruby Rails3.2ããå°å ¥ãããpluckã¡ã½ããã®ããã©ã¼ãã³ã¹ãç´ æ´ããã件 Rails3.2ããæ°ãã«è¿½å ãããæ°æ©è½ã¨ãã¦pluckã¡ã½ããã¨ããã®ããããã§ããã ï¼pluckã¯å¼ãæãã¨ããæå³ã®ããã§ãï¼ ããã大å¤ç´ æ´ããããªã¨æåãã¾ããããããããã®ã¡ã½ããã¯å¼æ°ã¨ãã¦ã«ã©ã åã渡ãã¨ãã®ã«ã©ã ã®å¤ãé åã§è¿ãã¾ãã User.pluck(:name) # => [sasata299, name1, name2, name3, ...] ã¤ã¾ããUser.all.map(&:name)ã¨åããããªå¦çãªã®ã§ãããç´ æ´ãããã®ã¯ãã®ããã©ã¼ãã³ã¹ã§ããmapã使ã£ãå ´åï¼selectã§çµè¾¼ã¿ãããå ´åã¨ãã¦ãªãå ´åï¼ã¨pluckã使ã£ãå ´åã§ããã©ã¼ãã³ã¹ãæ¯è¼ãã¦ã¿ã¾ãããã ããããã®å¦çã1000åãã¤è¡ã£ã¦è¨æ¸¬ãã¦ã¿ã¾ãã
é ç²ã¿ãç¼è± ç¾å³ããé ç²ã®ææã§ããã ä»å¹´ãè±ãããã¼ã¹ã®ãããã¯ã§ç¼è±ãä½ãã¾ããã800gã2çåã«ã ãèãã³ã¼ãã£ã³ã°ããã®ã¯ãé ç²ãå³å150gãã¤ããããããã«ãã«ã3çãå³éåã«ãããé¤æ²¹å°1ãåããããã®ã§ãï¼å³åã®å³ãç²ãã«åãããåéã¯èª¿æ´ï¼ç·©ãã¨æµãâ¦
Rails 3.2.0 ããããã«ãããã»ã¹ç°å¢ä¸ï¼Unicornãªã©ï¼ã§ã¯ã Rails.logger ã«ãããã®ã³ã°ãã以ä¸ã®ããã«è¤æ°ã®ãªã¯ã¨ã¹ãå士ã§ãæ··ãããããã«ãªã£ã¦ãã¾ãã¾ããã Started GET "/search?q=blip" for 0.0.0.0 at 2012-03-12 02:20:18 -0700 Processing by SiteController#search as / Parameters: {"q"=>"blip"} Started GET "/search?q=2bxen" for 0.0.0.0 at 2012-03-12 02:20:20 -0700 Processing by SiteController#search as / Parameters: {"q"=>"2bxen"} Rendered site/foo.html.erb
ããã«ã¡ã¯ãã»ããã§ãã風éªãæµè¡ã£ã¦ãã¦ä½èª¿ç®¡çã大å¤ãªã·ã¼ãºã³ã§ããã å é± âRails 3.2.0 ããªãªã¼ã¹ããã¾ããâ:http://weblog.rubyonrails.org/2012/1/20/rails-3-2-0-faster-dev-mode-routing-explain-queries-tagged-logger-store ãã Rails ã使ã£ã Web éçºãã¼ã ã§ã¯ 3.2 ã使ãå§ãã¦ãã¾ããã社å ã§ãçµå±ã©ãå¤ããã®? ã¨ãã声ãããã¾ããã®ã§ãåå¼·ãã¦ãã¿ããªã§ âRuby on Rails 3.2 Release Notesâ:http://edgeguides.rubyonrails.org/3_2_release_notes.html ã翻訳ãã¦ã¿ããã¨ãã試ã¿ãè¡ãã¾ããããã®ææãå ¬éãããã¨æãã¾ãã 注ææ¸ã: * 1ç« ãUpgra
Happy Friday! It's Rails 3.2 day! The official release announcement mentions a few of the big changes, but I'd like to take a moment to highlight a relatively small change I was responsible for, one that I hope may make your life a little easier. From the ActiveRecord CHANGELOG: Generated association methods are created within a separate module to allow overriding and composition using `super`. Fo
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}