The problem is that the simple_captcha is not working properly. The captcha image is not showing. Please help.
controller.rb
if simple_captcha_valid?
do something
else
do something else
end
view.html.rb
<div class="captcha">
<%= show_simple_captcha(label: "", placeholder: "", code_type: "numeric") %>
</div>
Gemfile
gem 'simple_captcha2', require: 'simple_captcha'
Error
SimpleCaptcha::SimpleCaptchaData Load (1.3ms) SELECT "simple_captcha_data".* FROM "simple_captcha_data" WHERE "simple_captcha_data"."key" = '******' ORDER BY "simple_captcha_data"."id" ASC LIMIT 1
**WARNING: Can't mass-assign protected attributes for SimpleCaptcha::SimpleCaptchaData: key**