search for: apply_simple_captcha

Displaying 2 results from an estimated 2 matches for "apply_simple_captcha".

2007 Oct 24
1
simple_captcha + model
Hi Experts, l have model called User class User < ActiveRecord::Base apply_simple_captcha end in view <%= show_simple_captcha(:object=>"user") %> in controller @user = User.fiind(params[:id]) if @user.valid_with_captcha? if @user.update_attributes(params[:use]) -------- else --------- end else -------------------- end as per...
2010 Apr 06
1
captcha in a belongs_to
...do |f|%> <p> <%= f.text_field :first_name,:maxlength => 50 %> </p> <p> <%= show_simple_captcha :image_style => ''random'',:distortion => ''medium'' %> </p> <%end %> And in staff.rb apply_simple_captcha :message => "Verification code does not match with image." And in update action of of staff controller def update @staff = Staff.find(params[:id]) @user = @staff.user if @staff.valid_with_captcha? and @user.update_attributes(params[:user]) flash[:notice] =...