I am having a problem where I am getting data from a form and when it
get puts into the database there is extra unwanted junk there, and I
don't know why it is doing it. Has anyone had any problems like this?
Anything that is saved in the database would be going through any validations and filters that you put in place.
Oh yeah I should mention it puts "|---- - comment here" into the db table (to be a little more precise on what I meant by junk).
That string is coming from somewhere. I'm guessing it's a mistyped HTML comment in one of your view files. Look at the HTML source of the page after its been rendered by Rails to see where that string is on the page and work back from there or just rgrep the directory to find it.
That looks like the start of a YAML document. Is the column serialised?
Maybe AR is doing something funky because the column name is the same as
the model name?