2009-01-01ãã1å¹´éã®è¨äºä¸è¦§
æ®éããã¼ãã«ã®è¡é¸æã«Ctrlãæ¼ããªããã¯ãªãã¯ããã¨é¸æããã°ã«å¼ã«é¸æãããé¸æãå¤ãããã§ãã. æ®æ®µPCã®UIã«æ £ãã¦ãã人ã¯å½ããåã ãã©Ctrlãæ¼ããªããã¯ãªãã¯ã¯ç¥ããªã人ã«ã¯ä½¿ãã«ããï¼ã£ã¨ãã人ãããï¼å人çã«ã¯ãããããè¦ãã¨â¦
MacPortsã§gitã¨bash-completionãã¤ã³ã¹ãã¼ã« $ sudo port install git-core $ sudo port install bash-completion .bashrcãä¿®æ£ if [ -f /opt/local/etc/bash_completion ]; then . /opt/local/etc/bash_completion fi if [ -f /opt/local/share/doc/gitâ¦
Railsã§è«çåé¤ãå¿ è¦ã«ãªã£ãã®ã§ã¨ãããã調ã¹ã¦ã¿ã.å¸æã¨ãã¦ã¯ ãã©ã°ã¤ã³ã«é ¼ããæ軽ã«ä½¿ããã ARã®æ©è½ãã®ã¾ã¾ã§ä½¿ããã 調ã¹ã¦ã¿ãã¨ä»¥ä¸ã®äºã¤ãã§ã¦ãã. acts_as_paranoid SkipEmbedded::LogicalDestroyable acts_as_paranoidãã°ã°ã£ã¦ã¿â¦
ãªããRails2.3ã®error_message_onã¯i18n対å¿ããã¦ãªãã®ã§ãã¦ã¿ã¾ãã. 対å¿å before error_message_on(:user, :name) => "ãå ¥åãã¦ãã ããã" 対å¿å¾ after error_message_on(:user, :name) => "ååãå ¥åãã¦ãã ããã" ã³ã¼ã ãã©ã°ã¤ã³ãªããâ¦
èªåã®ç°å¢ã ããããããªããã©ãrequest.session_options[:key]ãnilã®æããã£ãã®ã§ã¨ããããã対å¿ãã¦ã¿ã.å ã®å®è£ ãããå¤å®ãå¢ãããç¨åº¦ãªã®ã§ãã®ã¾ã¾ã§ãããæ°ããããã©æ§åè¦. Index: trans_sid.rb ======================================â¦
ä»ä½ã£ã¦ãã·ã¹ãã ã§SVNã®ãã¼ã¸ã§ã³ã表示ããããã¨æãã£ã¦æ¸ãã¦ã¿ã¾ãã. config/environment.rbãç·¨é config/environment.rbã«ä»¥ä¸ã追å APP_CONFIG = {} APP_CONFIG[:admin_email] = "MyApp <[email protected]>" APP_CONFIG[:site_name] = "MyApp" APP_CONFIG[:major</[email protected]>â¦
Passengerã§tmp/restart.txtãä½ã£ã¦ããã¨åèµ·åãã¦restart.txtãåé¤ãããã£ã¦ã©ããã«æ¸ãã¦ãã£ãã¨æããã©ãåèµ·åå¾ã«åé¤ãããªãã®ã§èª¿ã¹ã¦ã¿ã. çµæãrestart.txtã¯åé¤ããã¾ãã. touchããã ãã§OK以ä¸ã¯Passengerã®ã¦ã¼ã¶ãºã¬ã¤ãã«æ¸ãã¦â¦
ã¡ããã£ã¨ãã確èªã¨ãããã§ããæãã³ãã³ãã©ã¤ã³ã§ä»¥ä¸ã®æ§ã«å®è¡ãã $ echo "select * from users;" | sqlite3 db/development.sqlite3 ä¸ããã以ä¸ã®ããæ¹ã®æ¹ãçãã¦ãã¦ãã§ã. $ sqlite3 db/development.sqlite3 "select * from users;"ææãâ¦
ä»æ¥ãåãèºãã¾ãã. éçºç°å¢ã§ã¡ã¼ã«ãµã¼ããgmailã«ãã¦ã¿ããã¨æã£ããã§ããªãï¼ smtp_tls.rbãã©ã°ã¤ã³ã使ã ããããè¨äºãèªãã¨smtp_tls.rbãªãã¦ãã©ã°ã¤ã³ãèªä½ãã¦å¯¾å¿ãããã£ã¦æ¹æ³ãè¼ã£ã¦ã¾ãã.ãã ãsmtp_tls.rbã®ãã©ã°ã¤ã³ã ã¨Rubyâ¦
Nested Attributesã使ãã¨æ´æ°ããã¹ãããã¢ãã«ã§ãã§ããã¨ãã詳ããã¯http://webtama.jp/series/railstips/articles/31ãè¦ã¦ãã ãã. ã§ã¯æ©éã表示ããã¦ã¿ã has_many throughã§ãã§ããããæ°ã«ãªã£ãã®ã§è©¦ãã¦ã¿ã Event EventsUser User ããâ¦
ä»äºã§ä½ã£ããã©å¿ è¦ãªããªã£ãã®ã§è¨é²ã¨ãã¦ã¨ã³ããªã¼ãã¾ãã.é常ã®JComboBoxã®ãããã¢ããã¯JComboBoxã®å¹ ã«åããã¦è¡¨ç¤ºããã¾ã. 以ä¸ã®ã³ã¼ãã¯è¡¨ç¤ºå¹ ãçãå ´åãªã©ãããã¢ããå ã®ã¢ã¤ãã ã®æåãåãã¦ãã¾ãã®ãé²ãã¾ã. // ã³ã³ãããã¯â¦
æ°ãã¤ãã°ãã¾ããã°ããã¨ã³ããªãã¦ãªãã£ãã ä»æ´ãªããGit触ã£ã¦ã¿ã¾ããè¨å®ã ããªãsvnãã楽ã§ããã ãªãã¸ããªã®ä½æ share $ cd sandbox.git/ sandbox.git $ git --bare init Initialized empty Git repository in /var/www/vhosts/example.com/â¦