Closed jbcden closed 6 years ago
The main issue is the line:
let user_form = serde_json::from_str::>(json)?;
which should actually be:
let user_form = serde_json::from_str::<Vec<UserForm>>(json)?;
As per this. Not sure if this falls under the umbrella of https://github.com/sgrif/diesel.rs-website/issues/47 but wanted to note it here. I'm not too familiar with slim and I don't see anything obviously wrong with https://github.com/sgrif/diesel.rs-website/blob/master/source/views/guides/all-about-inserts.html.slim#L417 but perhaps I'm missing something obvious.
Looking at the rendered html it looks like <Vec<UserForm> portion of the type is being rendered as html:
<Vec<UserForm>
Ugh literally every time I publish a guide I forget that <pre><code> doesn't escape HTML tags >_>
<pre><code>
Should be fixed now. Let me know if I missed any.
The main issue is the line:
which should actually be:
As per this. Not sure if this falls under the umbrella of https://github.com/sgrif/diesel.rs-website/issues/47 but wanted to note it here. I'm not too familiar with slim and I don't see anything obviously wrong with https://github.com/sgrif/diesel.rs-website/blob/master/source/views/guides/all-about-inserts.html.slim#L417 but perhaps I'm missing something obvious.
Looking at the rendered html it looks like
<Vec<UserForm>
portion of the type is being rendered as html: