Rails3ã§ã¯ï¼ActiveRecordã使ã£ããã¼ã¿ã®åå¾æ¹æ³ã«find, find_by_XXX, find_all_by_XXX, all, whereã§ã®çµãè¾¼ã¿ãªã©è²ã ããã¾ããï¼ããããå¾®å¦ã«ç°ãªã£ãæåããã¾ãï¼ ã¡ããããµã³ãã«ã¢ããªãæ¸ãä½ãªããã¾ãæ°ã«ãªããªãæãªã®ã§ããï¼ãã¡ãã¨ã¢ããªãæ¸ãä¸ã§ã¯ä»¥å¤ã¨å¤§äºãªã¨ããï¼å¾è¿°ï¼ãªã®ã§ï¼ããããã§ã¾ã¨ãã¦ããã¾ãï¼ Rails使ã£ã¦ãã人㧠hoge = Hoge.find(params[:id]) || Hoge.new ã¨ãæ¸ãã¦æã£ãæ§ã«åããªããï¼ã¨ãããã£ã人åãã§ãï¼ åãä¸ããã®ã¯find, find_by_XXX, all, find_all_by_XXX, whereã§ãï¼Railsã®ãã¼ã¸ã§ã³ã¯3.2.8ã使ã£ã¦ãã¾ãï¼ ä»¥ä¸ã®èª¬æã§ã¯ï¼ä»¥ä¸ã®ã¯ã©ã¹ãåå¨ãããã¨ãåæã¨ãã¾ãï¼ class Hoge
{{#tags}}- {{label}}
{{/tags}}