Use space bar or arrow keys to navigate, and escape for index. Built with Slippy.
Monday, September 20, 2010 ã¯ã¦ãæ°ããããã¸ã§ã¯ããä½ã£ãã¨ããã§ä½ãããããã¾ãã¯ãcontroller ã model ãä½ãã rails2 ç³»ã§ã¯ããããªæãã ã£ãã $ script/generate model hoge $ script/generate controller hoge $ script/generate scaffold hoge $ script/generate rpsec_model hoge rails3 ã§ã¯ script 以ä¸ã®å®è¡æ¨©éãã¤ããããã°ã©ã 㯠rails ã³ãã³ãã«éç´ããã¦ãã(ã£ã½ã)ã®ã§ã以ä¸ã®ããã«ãªãã $ rails g model hoge $ rails g controller hoge $ rails g scaffold hoge $ rails g rspec_model hog
Rails generators are an essential tool for improving your workflow. With this guide you will learn how to create generators and customize existing ones. After reading this guide, you will know: How to see which generators are available in your application. How to create a generator using templates. How Rails searches for generators before invoking them. How to customize your scaffold by overriding
ãã®ã¦ã§ããµã¤ãã¯è²©å£²ç¨ã§ãï¼ twiwt.org ã¯ãããªãããæ¢ãã®æ å ±ã®å ¨ã¦ã®ææ°ãã¤æé©ãªã½ã¼ã¹ã§ããä¸è¬ãããã¯ããããããæ¤ç´¢ã§ããå 容ã¯ãtwiwt.orgãå ¨ã¦ã¨ãªãã¾ããããªãããæ¢ãã®å 容ãè¦ã¤ãããã¨ãé¡ã£ã¦ãã¾ãï¼
æ¦è¦ éçºãããã°ãªãªã¼ã¹ãããããªãªã¼ã¹ãçµããã°éçºãããã¾ããç¶ç¶éçºããã以ä¸ã¯ãªãªã¼ã¹ã¨éçºã®ç¹°ãè¿ãã§ãã éçºææ³ããªãªã¼ã¹æ段ã¯æ²¢å±±ããã®ã§ããããã¾ããã£ãããããã®ãç¡ãã£ãã®ã§èªåã§ã¾ã¨ãã¦ã¿ã¾ããã ããã§å®ç§ã¨ãããã®ã¯æ®å¿µãªãããã®ä¸ã«ãªãã¨æãã®ã§ããããããè¨æ©å¿å¤ã«è¯ãæµããä½ã£ã¦è¡ããã°ã¨æãã¾ãã ãã®æç« ã¯ä»¥ä¸ã®ãããªæ§æã«ãªã£ã¦ã¾ããæ¸ãæ®´ãã§ãã¿ã¾ããã ãã¼ã¸ã§ã³ã®ä»ãæ¹ ã½ã¼ã¹ã³ã¼ã管çã¨ãªãªã¼ã¹ ã¿ã¹ã¯é§å ç°å¢æ¹é å®ç¾© ããã¤ãäºåã«å®ç¾©ãã¦ãããªãã¨è©±ãã訳ããããªããªããããªã®ã§ã ãã¼ã¸ã§ã³ç®¡çã«ã¯ git ãæ¡ç¨ãã¦ãã¾ãã éçºã¨ããã®ã¯ã³ã¼ããæ¸ãäºã ããæãã¦ã¯ãã¾ããã ããã§ãããã¬ã¼ã ã¯ã¼ã¯ã¯ãèªèº«ã§éçºãã¦ãããã¨ãã¦æ±ãã¾ããããããªãã¨ã¡ãã£ã¨é£ããã®ã§ã ã©ã¤ãã©ãªã¯èªèº«ã®éçºã¨ãã以å¤ãããã¨æãã¾ãã®ã§ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}