this is kat's blog. i wrote this based on the rails first app guide and then i added stuff. it's a fucking mess here don't use this code
- style the sign-in page
- make tags not a drop down. figure it out idk
- make the post page less shit (i don't really care that much about this one but at least resize the text boxes that's annoying)
- make tags actually functional because i started adding them in prod like a fucking dumbass, got stuck, and never finished it because i was stuck and frustrated
new tags:
t = Tag.new(:name => 'tutorial')
t.save!
t = Tag.find_by(name: "tutorial")add tag to article:
t = Tag.find_by(name: "tutorial")
t.articles << Article.find_by(id:"1")