Have you tried:
@xxx.attributes = params[:blah]
if @xxx.save_with_captcha
do something
else
do something
end
Cheers,
Nicholas
On Jul 26, 3:42 am, Rails List
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> I am using the great simple captcha plugin for saving records like this
>
> if @xxx.save_with_captcha
> do something
> else
> do something
> end
>
> How do I use it when updating records?
>
> if @xxx.update_attributes(params[:blah])
>
> can I just say
>
> if @xxx.update_with_captcha(params[:blah])
> do something
> else
> do something
> end
> --
> Posted viahttp://www.ruby-forum.com/.