class PromosController < ApplicationController
def create
if !simple_captcha_valid?
flash[:error] = "Введен неверный код!"
redirect_to promo_path
return
end
......
end
end
here params[:captcha] always nil, but params[:promocode][:captcha] is present.
simple-captcha/lib/simple_captcha/controller.rb
Line 20 in b145495
here params[:captcha] always nil, but params[:promocode][:captcha] is present.