jessamarie / scribble

[rails]

Home Page:https://wdi-scribble.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scribble

Scribble is a Ruby on Rails application where users can read, write and interact with the best content all around the world. It is designed to be built, refined and deployed over the course of four nights.

We will start off with two models: Post and Comment.

Submitting

Fork this repo, and submit homework as a pull request on this repo...

$ git clone git@github.com:ga-wdi-exercises/scribble.git
$ cd scribble
$ rails new . -d postgresql

When asked if you want to overwrite the readme, enter "n" (for no).

The . creates a new Rails app inside the CURRENT folder. Otherwise, it creates a new folder. For instance, if you did rails new scribble it would create a scribble folder and put the Rails app inside there.

This is how a lot of people end up with a scribble folder inside another scribble folder.

Models + Migrations

  • Create ERD for Post and Comment
  • Create models for Post and Comment
  • Create migrations for Post and Comment

Index

  • Create an index where a user can see all posts
  • Each post should link to its respective show page

Show

  • Create a show where a user can see each individual post.
  • The show page should also show all of the post's comments.

Create

  • Allow the user to create new posts and comments

Update

  • Allow the user to edit existing posts and comments

Delete

  • Allow the user to delete existing posts and comments.

Bonus

Create two additional models: Category and Tag.

  • Tag represents the join table between Post and Category.

Update the Post show page so that it includes...

  • A linkable list of that Post's Categories.
  • When clicked, each Tag should link to its Category show page.

Create a form that allows you to create a Tag and/or Category.

  • If the Category exists, it will create a tag for that post.
  • If the Category does not yet exist, it will create that Category and create a Tag for that post.
  • If the Category exists AND the post already has that Tag, nothing will happen.

The Category show page should display all posts with that particular category.

About

[rails]

https://wdi-scribble.herokuapp.com


Languages

Language:Ruby 71.4%Language:HTML 20.3%Language:CSS 4.8%Language:JavaScript 2.6%Language:CoffeeScript 1.0%