2011-05-01ãã1ã¶æéã®è¨äºä¸è¦§
i18nç¨ã®ãã¡ã¤ã«ãä¸è¨ã®ããã«è¨å®ãã¦ãã㨠ja: helpers: submit: create: "ç»é²ãã" update: "æ´æ°ãã" submit: "ä¿åãã" label: user: email: "ã¡ã¼ã«ã¢ãã¬ã¹" password: "ãã¹ã¯ã¼ã"ä¸è¨ã®ãããªãã©ã¼ã ãæ¥æ¬èªã«ãªãã¾ã(I18n.locale = "ja"â¦
rails ã追å ãã¦ããã¡ã½ãããçãªããªãã¸ã§ã¯ãèªèº«ãè¿ãã¦ãå½ãªã nil ãè¿ãã object.present? ? object : nil. ã¨åããä¸è¨ã®ãããªããã©ã¡ã¼ã¿ããã§ãã¯ãã¦ä½¿ãããããæãã®ã³ã¼ãã state = params[:state] if params[:state].present? coâ¦
Configuring Rails 3 to use HTTPS and SSL â Simone Carletti's Blogã®æ訳ã Rails 3.1以é Rails3.1以éããã¯ããã®ã³ãããã«ãã£ã¦HTTPããHTTPSã¸é·ç§»ãããã®ãã¡ããç°¡åã«ã§ããããã«ãªã£ããä¸è¨ã®ããã«ããã ãã§OKã # config/application.rbâ¦
capybara ã®ãã©ã¤ãã«ãã£ã¦è¨å®ã®ä»æ¹ã¯éãããã§ãããããã©ã«ãã® Rack::Test ã§ããã° Capybara.default_host = "en.example.com" ã®ããã«ãããã¨ã§ããµããã¡ã¤ã³ã¸ã¢ã¯ã»ã¹ãããã¨ãã§ããããã«ãªãã¾ãã åè capybara with subdomains â Gist
ã¾ãã¾ãRails 3.1 ãã¿ã§ããRails 3.1 ã§ã¯ migration ãã¡ã¤ã«ã®ããã©ã«ããã©ã¼ããããå¤ããã¾ããã rails g model blog title:string body:text ã¨ããã¨ããRails 3.0 ã§ã¯ä¸è¨ã®ãã¡ã¤ã«ãçæããã¾ã class CreateBlogs < ActiveRecord::Migratâ¦
Rails 3.1 ãããã¹ã¯ã¼ãã®æå·åç¨ã®ã¢ã¸ã¥ã¼ã«ãã§ããããã§ããActiveModel::SecurePassword ã§å®ç¾©ããã¦ãã¦ãActiveRecord ã Mondoid ãªã©ã® ActiveModel ãå©ç¨ãã¦ããã¢ãã«ã§ä½¿ãããããªãUser ã¢ãã«ã« password_digest ã«ã©ã ãè¨å®ããã¦ãâ¦
deviseã§ãã°ã¤ã³å¾ã«é·ç§»ãããã¹ã¯ãããã©ã«ãã 㨠{deviseã§æå®ããmodelå}_root_path root_path ã®é çªã§æ¢ãããã以å¤ãæå®ãããå ´åã¯ãApplicationController 㧠after_sign_in_path_for ã¡ã½ã ãããªã¼ãã©ã¤ãããã ä¾ class ApplicationCoâ¦