Hilldamn
Joined
Activity
Posted in SQLite3::SQLException: no such column:
I'm trying to make a blogging app with rails and I'm currently trying to add a comment section. When I tried looking on one of my blogs it gave me this error.
ActiveRecord::StatementInvalid in Posts#show
SQLite3::SQLException: no such column: comments.post_id
Extracted source (around line #16):
<%= @post.comments.count %> Comments
<%= render @post.comments %>
Add a Comment:
<%= render 'comments/form' %>
I have no I idea of what's going on.
So I followed a tutorial on Youtube so that I could make a simple video sharing website such as Youtube itself -> https://www.youtube.com/watch?v=uV1hWKtza0g
I want to inplement a comment section so that the user can input comments. I saw several videos on how to do this but it was all for blogs and not a video sharing website. It would be greatly appreciated if you check out the video to get a sense of what I'm doing better. THANKS!
Where do I insert the user.avatar.purge?
I am using this tutorial ->https://www.youtube.com/watch?v=fJ8kD4de72Q. So I followed the Youtube video and it worked perfectly, but I want to add a feature so that the user can to delete the profile if they so choose to.
I will leave a link to all the code I used here -> https://medium.com/@abhishek.kanojia/from-paperclip-to-active-storage-749f7954e8d3