This is the first episode in a series covering Rails 3.1. Here I show how to install the beta and show some of the new features.
2012å¹´10æ29æ¥19:27 Ruby Rails3.1ããå°å ¥ãããAsset Pipelineãããããã£ã¦ãªãã£ããã調ã¹ã Asset Pipelineã¨ããã®ã¯Rails3.1ãã追å ãããæ©è½ã§ã以ä¸ã®ãããªç¹å¾´ãåãã¦ãã¾ãããªããªã便å©ãããªãã¤ã§ããã ã»cssãjsã¯åã ä¸ã¤ã®ãã¡ã¤ã«ã«ã¾ã¨ããããï¼ãã©ã¦ã¶ã®ãªã¯ã¨ã¹ãåæ°ãæ¸ãããï¼ ã»ãããã®ãã¡ã¤ã«ã¯èªåã§å§ç¸®ï¼é£èªåãããï¼ãã¡ã¤ã«ãµã¤ãºãæ¸ããã¦è² è·è»½æ¸ï¼ ã»ã¤ãã§ã«ãSassãCoffeeScriptã使ã£ã¦cssãjsãè¨è¿°ãããã¨ãå¯è½ã«ãªã£ã¦ãã ã§ã¯ã©ããã£ãä»çµã¿ãªã®ãè¦ã¦ã¿ã¾ãããã ä¾ãã°Rails3.2.3ã§æ°ããã¢ããªãä½æããã¨ãã¾ãããã®ã¨ããGemfileã«ã¯ããã©ã«ãã§jquery-railsãæå®ããã¦ãã¾ããããã¦app/assets/javascripts/applica
279: Asset Pipelineãç解ãã (view original Railscast) Other translations: Other formats: Written by Naomi Fujimoto Asset Pipelineã¯Rails 3.1ã®ãã£ã¨ã大ããªæ°æ©è½ã§ãããåæã«ãã£ã¨ãæ··ä¹±ããããæ©è½ã§ãããã¾ããä»åã®ã¨ãã½ã¼ãã§ã¯ããã®Asset Pipelineãã©ã®ããã«Railsã¢ããªã±ã¼ã·ã§ã³ã®ã¢ã»ããã管çããããè¦ããã¨ã«ãã£ã¦ãå°ããã®ç¥ç§æ§ãåãé¤ãã¦ããããã¨æãã¾ããããAsset Pipelineã«ã¤ãã¦ã¾ã£ããç¥èããªãå ´åã¯ãRails Guideã®Asset Pipelineã®ãã¼ã¸ãå¤ãã®æ©è½ã説æãã¦ããã®ã§ãã¾ãããããå§ããã®ãããã§ãããã Rails 3.1ã¢ããªã±ã¼ã·ã§ã³ãæ¸ãããã¨ãããæ¹ãªããhttp://
æ°å¹´ããã¾ãã¦ããã§ã¨ããããã¾ãã2012å¹´åæ稿ã§ãã å®ã¯ 2012/01/10 ãããè¦ç¿ãã¨ãã¦ã§ã¯ããã¾ããã SonicGarden ã¸å ¥ç¤¾ãããã¨ã«ãªãã¾ããã ä»ã¾ã§å¿æ´ä¸ãã£ãçã æ§ãæ¬å½ã«ãããã¨ããããã¾ãã ã¾ã ã²ã¨ã¤ã®ããã·ã§ã³ãã¯ãªã¢ããã ãã§ããããããé å¼µãã©ããã§ãã ãããããã©ãããããããé¡ãè´ãã¾ãã Rails ã¢ããªã Heroku ã¸ãããã¤ããããã·ã§ã³ ãã¦ãRuby on Rails ä¿®è¡ã®ä¸ç°ã§ãRails ã¢ããªã Heroku ã¸ãããã¤ãããã¨ã«ãªãã¾ããã âã® @mat_aki å çã®è¨äºãåèã«ãã¾ãã åè : Herokuã§ä½ãFacebookã¢ããªï¼ç¬¬2åãHerokuã§Railsã¢ããªãåãããï½gihyo.jp ⦠æè¡è©è«ç¤¾ POINT å ã«ãã¾ãè¡ãè¦ç¹ãã çµæãæçµçãªç°å¢ã¯Â ruby 1.9.2p29
pelle/oauth-plugin - GitHub äºåæºå oauth-plugin ã¯ã³ã³ããã¼ã©ã¼ã« current_user, current_user=, logged_in?, login_required ã®4ã¤ã®ã¡ã½ããããããã¨ãåæã¨ãã¦ãã¾ãã®ã§ãèªåã®ããã¸ã§ã¯ãã®è¨è¨ã«ãããã¦ãããã®ã¡ã½ãããä½ãã¾ãããã current_user ç¾å¨ãã°ã¤ã³ãã¦ããã¦ã¼ã¶ã¼ã®ã¦ã¼ã¶ã¼ã¢ãã«ã¤ã³ã¹ã¿ã³ã¹ã® getter current_user= ç¾å¨ãã°ã¤ã³ãã¦ããã¦ã¼ã¶ã¼ã®ã¦ã¼ã¶ã¼ã¢ãã«ã¤ã³ã¹ã¿ã³ã¹ã® setter logged_in? ãã°ã¤ã³ç¶æ ã®å ´å㯠true, æªãã°ã¤ã³ç¶æ ã®å ´å㯠false ãè¿ã login_required æªãã°ã¤ã³ç¶æ ã§ãã°ã¤ã³ãå¿ è¦ãªãã¼ã¸ï¼OAuth Consumer ã®ç»é²ãã¼ã¸ãªã©ï¼ã«ã¢ã¯ã»ã¹ããéã®å¦çï¼å ¸åçã«ã¯ãã
æ¹é æå (Ubuntu)ã§éçºãã¦ããµã¼ã(Ubuntu)ã«ãããã¤åºæ¥ãrails 3.1åä½ç°å¢ãä½ãã®ãç®æ¨ ããã¸ã§ã¯ãæ¯ã«ã¦ã¼ã¶ãä½æãã (åã©ã¤ãã©ãªãããã¸ã§ã¯ãæ¯ã«bundlerã§ç®¡çããããã¤ããããã) åæ§ã®çç±ã§rbenvã使ã£ã¦åã¦ã¼ã¶æ¯ã«rubyã®ãã¼ã¸ã§ã³ã管ç æ§æ éçãªãã¡ã¤ã«ã¸ã®ãªã¯ã¨ã¹ãã¯ç´æ¥nginxã§è¿ãæ§æãã¨ãã¾ã(railsã®publicé ä¸ã®ãã£ã¬ã¯ããªã«ãããã¡ã¤ã«ãé©å®nginxã®configã«è¨å®ã追å ããå¿ è¦ãã)ãã¾ãrails3.1ããAsset Pipelineãå°å ¥ããããã/assets/ãã«é¢ãããªã¯ã¨ã¹ãã«é¢ãã¦ãnginxã§ç´æ¥è¿ãããã«ãã¾ããå ãã¦nginx <=> unicornéã®æ¥ç¶ã«ã¯Unix Domain Socketãç¨ãã¾ããã¤ã¡ã¼ã¸ãå³ã«ããã¨ä¸è¨ã®ããã«ãªãã¾ãã unicorn gith
Heroku 㧠Rails 3.1 ã¢ããªã git push heroku master ããã¨ãããªã¨ã©ã¼ãåºããã¨ãããã¨æãã¾ãã -----> Preparing app for Rails asset pipeline Running: rake assets:precompile rake aborted! Failed to connect to a master node at localhost:27017 Tasks: TOP => environment (See full trace by running task with --trace) Precompiling assets failed, enabling runtime asset compilation Injecting rails31_enable_runtime_asset_compilati
ããããã Railsã§ä¾åé¢ä¿ãããã¢ãã«ãå®è£ ããã®ã«ããã®è¨äºã大å¤åèã«ãªãã¾ãã Rolling with Rails 2.0 â The First Full Tutorial â Part 2 â AkitaOnRails.com ç´ æ´ãããè¨äºã§ãããã æ®å¿µãªãã2007å¹´ãå½æã¯Rails 2.*ã§ããããç¾å¨ã¨ã¯è²ã ã¨éã£ã¦ãã¾ãã Rails 3.1.1ã§åããããªäºããã£ã¦ã¿ã¾ããã ã²ã¨ã¤ã®Postã«è¤æ°ã®Commentãæå±ãããããã°é¢¨ã®ã·ã¹ãã ã§ãã Postãä½ã æ®éã«Postãä½ãã¾ãã Ruby on Railsãéå§ã
Bootstrap in action, as demoed in Luca Pette's article Updated Feb 2012 for Bootstrap 2. Twitterâs new CSS toolkit, Bootstrap, is all the rage these days. I explain how to get the CSS, and optionally the mixins and the JavaScript, into your Rails app. âHow do I serve Bootstrap through Rails 3.1âs asset pipeline?â Just add Ken Collinsâs (@metaskillâs) less-rails-bootstrap gem (announced recently on
Spring Bootã«ããAPIããã¯ã¨ã³ãæ§ç¯å®è·µã¬ã¤ã 第2ç ä½å人ãã®éçºè ããInfoQã®ããããã¯ãPractical Guide to Building an API Back End with Spring BootããããSpring Bootã使ã£ãREST APIæ§ç¯ã®åºç¤ãå¦ãã ããã®æ¬ã§ã¯ãåºçæã«æ°ãããªãªã¼ã¹ããããã¼ã¸ã§ã³ã§ãã Spring Boot 2 ã使ç¨ãã¦ãããããããSpring Boot3ãæè¿ãªãªã¼ã¹ãããéè¦ãªå¤...
Highlights in Rails 3.1: Streaming Reversible Migrations Assets Pipeline jQuery as the default JavaScript library 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.1If you're upgrading an existing application, it's a great idea
ã¾ãã¾ãRails 3.1 ãã¿ã§ããRails 3.1 ã§ã¯ migration ãã¡ã¤ã«ã®ããã©ã«ããã©ã¼ããããå¤ããã¾ããã rails g model blog title:string body:text ã¨ããã¨ããRails 3.0 ã§ã¯ä¸è¨ã®ãã¡ã¤ã«ãçæããã¾ã class CreateBlogs < ActiveRecord::Migration def self.up create_table :blogs do |t| t.string :title t.text :body t.timestamps end end def self.down drop_table :blogs end end Rails 3.1 ã§ã¯ä¸è¨ã®ãã¡ã¤ã«ãçæããã¾ãã class CreateBlogs < ActiveRecord::Migration def change cr
Rails 3.1 ãããã¹ã¯ã¼ãã®æå·åç¨ã®ã¢ã¸ã¥ã¼ã«ãã§ããããã§ããActiveModel::SecurePassword ã§å®ç¾©ããã¦ãã¦ãActiveRecord ã Mondoid ãªã©ã® ActiveModel ãå©ç¨ãã¦ããã¢ãã«ã§ä½¿ãããããªã User ã¢ãã«ã« password_digest ã«ã©ã ãè¨å®ããã¦ããåæ㧠class User < ActiveRecord::Base has_secure_password end ã¨ããã¨ãä¸è¨ã®ãããªå¹è½ãå¾ããã¾ãã attr_reader :password validates_confrmation_of :password validates_ppresence_of :password_digest password ã«ä½ãä»£å ¥ããã¨èªå㧠bcrypt-ruby ã§ããã·ã¥ã«ãã㦠password_d
Riding Rails: Why HTTP Streaming?ã®æ訳ã§ããRails 3.1 ããHTTPã¹ããªã¼ãã³ã°ããµãã¼ããããããã«ãªããããã HTTPã¹ããªã¼ãã³ã°ã£ã¦ä½ï¼ æ®éã®åçãªHTTPã¬ã¹ãã³ã¹ã«ã¯Content-Lengthããããå¿ è¦ãæç³»åçã«ã¯ãããªæã HTTPãªã¯ã¨ã¹ã åçãªã³ã³ãã³ãã®çæ HTTPã¬ã¹ãã³ã¹ ãããã¯ä¸ã¤ã®é£ç¶ããã¹ãããã¨ãªããæ®éã¯ã³ã³ãã³ããçæããã¨ãã®ãµã¤ãºãç¥ããã¨ãå¯è½ã«ãªããã¬ã¹ãã³ã¹ãããã«Content-Lengthãä»ãå ããã HTTPã¯ä¸è¨ã®ããæ¹ã®ä»£ããã«chunked transfer encodingã¨å¼ã°ããã¹ããªã¼ãã³ã°çãªãããããæä¾ãã¦ããã ã¹ããªã¼ãã³ã°ãªã¬ã¹ãã³ã¹ã«ã¯Contnt-Lengthãããã¯ãªãããã®ä»£ããã«Transfer-Encodingãããã"chunked"ã¨ã
Iâve been working on revamping the Active Record query interface for the last few weeks ( while taking some time off in India from consulting work, before joining 37signals ), building on top of Emilioâs GSOC project of integrating ARel and ActiveRecord. So hereâs an overview of how things are going to work in Rails 3. Whatâs going to be deprecated in Rails 3.1 ? These deprecations will be effecti
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}