ä¼ç¤¾ã«ã¯çµç¹ãã¤ããã®ã§ãçµç¹ã¯OSã®ãã¡ã¤ã«ã·ã¹ãã ã®ãããªé層æ§é ãæã£ã¦ãããããã¦ãä¼ç¤¾çµç¹ã¨ãããã®ã¯ãããã£ã¡ã ãå¤æ´ãããéå½ã ããã®å¤æ´ã«è¿ éãæè»ã«å¯¾å¿ããããã«ãOSã®ãã¡ã¤ã«ã·ã¹ãã ã®ããã«ããã¼ã¿ãã¼ã¹ä¸ã®ããªã¼æ§é ããã¦ã¹ã§èªå¨ã«æä½ã§ããããã«ããããRailsã«ã¯ããªã¼æ§é ãæ±ãããã®ä»çµã¿ãacts_as_treeããããããã¨ãåå使ã£ãsortable_elementãçµã¿åããã¦ããã¦ã¹ã«ããããªã¼æ§é ã®æä½ã«å¯¾å¿ãã¦ã¿ãã acts_as_treeã®çµè¾¼ã¿ parent_idãã£ã¼ã«ãã®è¿½å ãï¼ååã®ãã¤ã°ã¬ã¼ã·ã§ã³ãã¡ã¤ã«ã«ãªã¬ã³ã¸è²ã®1è¡ã追å ãããï¼ # ãã¤ã°ã¬ã¼ã·ã§ã³ï¼db/migrate/001_create_locks.rb class CreateLocks < ActiveRecord::Migration def self.up
{{#tags}}- {{label}}
{{/tags}}