This repository aims helping people to understand a basic friendship model on rails.
Kubilay Caglayan
- Github: @kubilaycaglayan
- Twitter: @kbcaglayan
- Linkedln: kubilay-caglayan
- Portfolio
- Run
git clone https://github.com/kubilaycaglayan/How-to-Create-the-Simplest-Friendship-Model-on-Rails.git
in the terminal. - cd into the directory.
- run
bundle install
- run
rails db:migrate && rails db:seed
- Run
rails console
in the terminal.
- Within the rails console, you can:
- create users
- send invitations
- accept invitations by updating the records
- reject invitations by deleting the records
- run class and instance methods to investigate user relationships.
- User
- Invitation
- User can create invitations
- Invitation belongs to user.
- There is no automated tests for this project.
This is an open source project. Feel free to add your feedback. If, for any reason, this project doesn't work as supposed to be in your computer, create an issue so we can help you out with it. Lastly, you can request for a feature to be added.
Ruby on Rails Git VS Code Atom
Give a star if you like this project!
- The Odin project for the project plan
- https://www.theodinproject.com/courses/ruby-on-rails/lessons/associations
This project is MIT licensed