â pagination (ç°¡åãªãã¼ã¸ç®¡ç) Webã³ã³ãã³ãã§ä¸è¦§è¡¨ç¤ºæã«ãåã®ãã¼ã¸ãã次ã®ãã¼ã¸ãã¨ãã£ããªã³ã¯ãä½ãã®ã¯çµæ§é¢åã§ããããRails ã«ã¯ pagination ã¨ãããã¼ã¸ç®¡çæ©è½ãããããã¸ãã¯(ã³ã³ããã¼ã©)å´ã§ã¯ããã¼ãã«ã®ã¢ãã«ã表ãã·ã³ãã«(å¿ é )ã¨è¡¨ç¤ºæ¡ä»¶çãå¼æ°ã«åãpaginate ãå¼ã³åºãã ãã # controller def list @pages, @items = paginate(:item, :per_page => 20, :order_by => 'itemcode') end æ»ãå¤ã¯ãã¼ã¸ç®¡çãªãã¸ã§ã¯ãã¨æ¤ç´¢çµæã®ã¢ãã«ã®ã¤ã³ã¹ã¿ã³ã¹ã®é åãå¾è ã¯AR::find_allã¨åããã®ã§ãããåè ã®ãã¼ã¸ç®¡çãªãã¸ã§ã¯ãããã¼ã¸ã«é¢ããå種æ å ±ãæã£ã¦ããã®ã§ããã¥ã¼å´ã§ã¯ããã以ä¸ã®ããã«å©ç¨ããã # view <%=
{{#tags}}- {{label}}
{{/tags}}