Welcome Guest, Not a member yet? Register   Sign In
Extra content being inserted using Active Records
#7

[eluser]dtrnr[/eluser]
Yep, form is passing the data using POST. Which is why I think the second load inserts 0 into all the rows. If I monitor resources for the pages loading, I see my CSS and JS files load (but they're doing nothing) a total of two times, and the site seems to as well. You can see a screenshot of it here. The content only shows on screen once, and viewing the source shows a single copy of my source code.

With regards to the create(), the form for handling blog posts is set to go straight to it when the user/I submit the form. So it's going straight to the function that processes it. It's just being processed twice, once with actual data and once without.

Having just typed all of this out, I've actually gone and played with it some more, and after seeing what I'm now seeing, I believe that the fault wasn't lying with the code I was using at all, as it's now perfectly fine. I got frustrated with the code earlier, and purged it so I could start from scratch. The current setup is identical in every way... except one. .htaccess rewriting isn't being used now and everything seems to be running smoothly.

After looking into it, it seems that this is a problem that others have encountered before, but there's never been a solution that works for everyone. I don't suppose you could provide some help/pointers on how to deal with them at all?


Messages In This Thread
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 06:39 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 08:13 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 08:28 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 09:07 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 09:25 AM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 01:19 PM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 02:25 PM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 02:50 PM
Extra content being inserted using Active Records - by El Forum - 05-23-2010, 03:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB