I have a Rails 4 app running on the one-click Ruby on Rails instance. I followed this tutorial:
Everything is working perfectly, except for one strange issue. Every time I create a new entry in my rails app through any sort of “create” action, two entries are added to the database. For example, the standard Rails scaffolding for creating a post will create two posts in the MySQL db instead of one. Has anyone experienced this before?
I should add that this is not happening in development. It’s only when I push the app to the server and run in production.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Are you still running in “development” mode on the server? Do you have precompiled assets in “public/assets”? Those things combined could be causing your issue: <br> <br>http://stackoverflow.com/questions/7721502/rails-3-1-remote-requests-submitting-twice <br> <br>Let us know if you’re still having a problem.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.