scaffoldを使ã†ã¨CRUDãŒæƒã£ãŸã€ŒåœŸå°ã€ã‚’一発ã§ä½œã‚Œã‚‹ã‚ã‘ã§ã™ãŒã€ãれをアレコレã—ã¦å…¨ã¦ã®æ“作をAjax化ã—ã¦ã¿ãŸã®ã§ã€æ‰‹é †ã‚’ã¾ã¨ã‚ã¾ã—ãŸã€‚ 記事をèªã‚€ã®ãŒã ã‚Šãƒã£ã¦æ–¹ã¯ã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰ã‚’GitHubã§å…¬é–‹ã—ã¦ã‚‹ã®ã§ã€ãã¡ã‚‰ã‚’ã”覧ãã ã•ã„。 Rubyã‚‚Railsã‚‚ã‚ã‚“ã¾ã‚Šè§¦ã£ãŸäº‹ãŒãªã„ã®ã§ã€è˜è€…ã«ã‚ˆã‚‹ãƒ„ッコミæ“è¿Žã—ã¾ã™ã€‚ (`・ω・´) æ¦‚è¦ ã‚„ã‚‹ã“㨠indexã®ç”»é¢ã ã‘ã§CRUDã€ã¤ã¾ã‚Šæ–°è¦ä½œæˆ (Create)ã€è¡¨ç¤º (Read)ã€ç·¨é›† (Update)ã€å‰Šé™¤ (Delete)ã‚’è¡Œãˆã‚‹ã‚ˆã†ã€scaffoldã§ä½œæˆã—ãŸãƒ•ã‚¡ã‚¤ãƒ«ã‚’ã„ã˜ã‚Šã¾ã™ã€‚ çµè«– form_for()ã«remote: trueを与ãˆã‚‹ã ã‘ã§ã€ã¨ã‚Šã‚ãˆãšAjax化ã—ã¾ã™ã€‚ã‚ã¨ã¯ã‚µãƒ¼ãƒãƒ¼å´ã®ãƒ¬ã‚¹ãƒãƒ³ã‚¹ã®å†…容を整ãˆã¦ã€ã‚¯ãƒ©ã‚¤ã‚¢ãƒ³ãƒˆå´ã§é©åˆ‡ã«å‡¦ç†ã—ã¦ã‚„ã‚Œã°OKã§ã™ã€‚ ä½œæ¥ ä¸‹æº–å‚™ï¼ˆscaffoldã¨ã‹ï¼‰ indexã«ç·¨é›†ãƒ•
{{#tags}}- {{label}}
{{/tags}}