my blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update readme rails c cheatsheet

+13 -5
+13 -5
README.md
··· 2 2 3 3 hi this is my new git repo for my blog bubblegum. i wrote this based on the rails first app guide and then i added stuff. it's a fucking mess i know 4 4 5 - site to-do list 5 + ### site to-do list 6 6 * make the index design less shit 7 7 * 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) 8 8 9 - completed to-do stuff 9 + ### completed to-do stuff 10 10 * 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 11 11 12 - also some manual rails console tagging commands are down here for me to remember and use: 12 + ### also some manual rails console tagging commands are down here for me to remember and use: 13 13 14 - ```ruby 15 - t.articles = [] 14 + new tags: 16 15 16 + ```ruby 17 17 t.articles << Article.find_by(id:"1") 18 18 19 19 t = Tag.new(:name => 'tutorial') ··· 22 22 23 23 t = Tag.find_by(name: "tutorial") 24 24 ``` 25 + 26 + add tag to article: 27 + 28 + ```ruby 29 + t = Tag.find_by(name: "tutorial") 30 + 31 + t.articles << Article.find_by(id:"1") 32 + ```