Friday, September 10, 2010

[Rails] Simple_captcha issue

I have a weird issue .I am using simple captcha in forms in my rails
applications. If I am using one captcha in a web page I don't have any
problem. But I have a scenario of using three(3) forms in one page in
which all the three forms will have the captcha . So that when I
refresh the page the captcha data of the three forms are equal.


When we come to database , once the page get
loaded the captcha value for one particular id will be created,
Without using the captcha if we refresh the page the record is getting
updated instead of creating another record, And more over if I open
the web page in two tabs and if I submit the form in the first page.
It throws an exception which says " Invalid Captcha"


Can anyone please let me know how to handle multiple
captcha in single page.


Thanks in-advance

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate