Tag: SimpleCaptcha
sudo port install ImageMagick
sudo yum install ImageMagick-devel
gem "galetahub-simple_captcha", :require => "simple_captcha"
bundle install --path vendor/bundle
bundle exec rails generate simple_captcha bundle exec rake db:migrate bundle exec rake db:migrate RAILS_ENV=production # 必要な場合
ApplicationController < ActionController::Base include SimpleCaptcha::ControllerHelpers end
<%= show_simple_captcha %>
if simple_captcha_valid? do this else do that end
SimpleCaptcha.setup do |sc| sc.image_magick_path = '/opt/local/bin' # you can check this from console by running: which convert end
ja: simple_captcha: placeholder: "Enter the word" label: "画像の文字を入力してください"