How do I prevent a form from being resubmitted too quickly in a rails application?

Posted by user284194 on Stack Overflow See other posts from Stack Overflow or by user284194
Published on 2010-04-29T17:02:24Z Indexed on 2010/04/29 17:07 UTC
Read the original article Hit count: 312

Filed under:
|
|

I have made a simple Rails application that allows people to comment on posts. How do I prevent that user from submitting that form over and over again? On reddit.com they only allow newer users to make new posts every ten minutes. How can I do this with my simple blog/commenting system? Any help would be greatly appreciated. Thanks for reading my question.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails