Skip to content

In this repository, we are going trough a basic friendship modeling with rails.

Notifications You must be signed in to change notification settings

kubilaycaglayan/the-simplest-friendship-model-on-rails

Repository files navigation

THE SIMPLEST FRIENDSHIP IN RUBY ON RAILS

This repository aims helping people to understand a basic friendship model on rails.

second_article

Author

Kubilay Caglayan

How to Run Code

  • 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.

Usage

  • 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.

Models

  • User
  • Invitation

Associations

  • User can create invitations
  • Invitation belongs to user.

Automated Test Section

  • There is no automated tests for this project.

Feature & Issues Section

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.

Issue Page

Built With

Ruby on Rails Git VS Code Atom

Show your support

Give a star if you like this project!

Acknowledgments

License

This project is MIT licensed

About

In this repository, we are going trough a basic friendship modeling with rails.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published