タグ

captchaとrailsに関するrochefortのブックマーク (1)

  • rails で 画像認証 captcha (マルッと!)

    validates_captchaは、rails で、画像認証 captcha ができるようになるプラグインです。 RMagickに依存していています。 インストール。 script/plugin install http://svn.2750flesk.com/plugins/trunk/validates_captcha で、次に、設定ファイルと、必要ディレクトリを用意します。以下のコマンドを実行すればOK。 script/generate captcha config script/generate captcha image_directory script/generate captcha store_directory config/captcha.yml で、ディレクトリは変えられますが、その場合は自分で mkdir しましょう。 viewには以下のように記述。 <% c

  • 1