Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
class Member < ActiveRecord::Base has_one :favorite end class Favorite < ActiveRecord::Base belongs_to :member end has_one ã§é¢é£ãå®ç¾©ããã¨ã以ä¸ã®ã¡ã½ãããèªåçã«å®ç¾©ããã¾ãã(belongs_to å´ã«ãåæ§ã®ã¡ã½ãããå®ç¾©ããã¾ã)ã (é¢é£å)(force_reload = false) : é¢é£ãããªãã¸ã§ã¯ããåå¾ãã¾ãã (é¢é£å)= : é¢é£ãããªãã¸ã§ã¯ããä»£å ¥ãã¾ãã(èªåçã«DBã¸ä¿åããã¾ã) (é¢é£å).nil? : é¢é£ãããªãã¸ã§ã¯ããåå¨ããªããã¨ã確èªãã¾ãã(ãªããã° true ãè¿ã) build_(é¢é£å)(attributes = {}) : é¢é£ãããªãã¸ã§ã¯ããä½æãã¦è¿ãã¾ãã(DBã¸ã®ä¿åã¯ããã¾ãã) create
ä»æ´ã§ãããrails ã® has_many :through ã使ã£ã ãã¼ã¿ã®å¤å¯¾å¤é¢ä¿ã®æ±ããã¾ã¨ãã¦ã¿ãããã¨ã ï¼â» ããå°ãæ©ããããã¡ãã£ã¨ç解ãã¦ãã° ä»ããå°ã楽ã§ãããªã¨ããå¾æãå«ããï¼ Tweet ãã¦ãä»å使ãã®ã¯åç´ãªã¯ã©ãã¨å¦çã®ç´ä»ãã ã¯ã©ãã«ã¯è¤æ°äººã®å¦çãç´ä»ããããã å¦çã«ãè¤æ°ã®ã¯ã©ããç´ä»ãããã ãããªé¢ä¿ã ã§ã"ã¯ã©ã"ãã¼ãã«ã¨"å¦ç"ãã¼ãã«ãä½æããã ããã§ããã¼ã¿ã¯ãããªæãã§å ¥ãã¦ããã [ã¯ã©ã] [å¦ç] ããä¸ã¤ãç´ã¥ããããã®ãã¼ãã«ãå¿ è¦ã«ãªãã "ã¯ã©ã"ãã¼ãã«ã¨"å¦ç"ãã¼ãã«ã®ç´ä»ããè¡ããã§ã "club_students" ã¨ããååã§ããã¦ä½æããã "club_students" ã«ã¯ã"ã¯ã©ã"ãã¼ãã«ã® id 㨠"å¦ç"ãã¼ãã«ã® id ãããããæãããã ãããªæãâ ã§ãããã rails
Ubuntu8.04ã®å ´åã ImageMagickãã¤ã³ã¹ãã¼ã« % sudu apt-get install make % sudo apt-get install imagemagick libmagick++9-dev ç¢ºèª % convert --version Version: ImageMagick 6.3.7 02/19/08 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC Rubyãã¤ã³ã¹ãã¼ã« % sudo aptitude install ruby rubygems irb ruby1.8-dev rmagickã®ã³ã³ãã¤ã«ã«ruby1.8-devãå¿ è¦ãããã rubygemsãå©ç¨ããããã®ç°å¢å¤æ°ãè¨å® % export GEM_HO
çå¸æ³¢ã»ããªã»ã¤ã©ã¹ããªã¢ã¹ç»åã®ç»åãã ãã http://takeshima.2ch.net/test/read.cgi/news4vip/1249175789/ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}