The provided regular expression is using multiline anchors (^ or $), which may present a security risk. Did you mean to use \A and \z, or forgot to add the :multiline => true option? Rails3ã®ããã¹ããRails4ã§é²ãã¦ããã¨ä¸è¨ã¨ã©ã¼ãåºã¾ããã Rails4ã§ã¯æ£è¦è¡¨ç¾ãå³ãããªã£ãããã§ãã 次ã®æ£è¦è¡¨ç¾ã使ç¨ãã¾ããã validates :image_url, allow_blank: true, format: { with: %r{\.(git|jpg|png)$}i, message: 'ã¯GIFãJPGãPNGç»åã®URLã§ãªããã°ãªãã¾ããã } ã¨ã©ã¼ã«ãã㨠^ 㨠$ ã¯æ¹è¡ã«
{{#tags}}- {{label}}
{{/tags}}