Displaying 4 results from an estimated 4 matches for "show_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 this code is working fine, but all the t...
2009 Jun 20
0
problem with simlpe captcha
...ActionView::TemplateError (undefined method `find_by_key'' for
SimpleCaptchaData():Class) on line #246 of home/register.rhtml:
243: </td>
244: <td align=left>
245: <br/>
246: <%=show_simple_captcha
(:object=>"user", :label => "Robot Authentication (Case Insensitive)")
%>
247:
248: </td>
249: <td align=left>
Not sure why? Can anyone help with it please..........
2010 Apr 06
1
captcha in a belongs_to
...ongs_to user
Now in the staff edit I have to include a captcha. I did like
<% form_for @user, :url => staff_url(@staff), :html => {:method => :put
} 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 upda...
2008 Dec 28
7
2.2.2 simple_captcha upgrade error
...;'m using the simple_captcha plugin
on my site, and all is well until i call that plugin.
http://www.pastie.org/347721
ActionView::TemplateError (undefined method `transaction_status'' for
#<PGconn:0x6a8ae20>) on line #43 of
app/views/forms/_slang_form.html.erb:
42:
43: <%= show_simple_captcha %>
44:
45: <%= @f.submit "Submit" %>
46: </p>
The plugin works great in 2.1.0, Has anyone seen anything like this
before??
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscrib...