Skip to content

In this project we are building a Rails application in which you can create users and comments.

License

Notifications You must be signed in to change notification settings

kubilaycaglayan/building-with-active-record

Repository files navigation

BUILDING WITH ACTIVE RECORD

In this project we are building with active record on Rails. Created with Model & Controller & View principals.

Notes

  • In our seed.rb file you will find dummy data.
  • data_plan.md File is our warm-up sketch.

Authors

Marios Kanellopoulos

Kubilay Caglayan

How to Run Code

  • clone repository
  • bundle install
  • rails db:migrate
  • rails db:seed
  • rails console

Usage

  • In order to enter the rails's console type rails console in your terminal.
  • u = User.create(:name => "your_name")
  • p = Post.create(:title => "your_title", :body => "your_boby", :user_id => u.id)
  • c = Comment.create(:body => "your_body", :post_id => p.id, :user_id => u.id)

Screenshot 2020-05-04 at 10 49 22 AM

Automated Test Section

There are no automated test for this project yet

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

Show your support

Give a star if you like this project!

Acknowledgments

License

This project is MIT licensed

About

In this project we are building a Rails application in which you can create users and comments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages