Categories
Ruby on Rails The Odin Project

Cloning Facebook

A few weeks ago, I completed one of the major projects in the Rails portion of the curriculum at TheOdinPoject. This project creating a clone of the popular Facebook app. Creating a true clone of Facebook would be extremely time consuming, as there are so many facets to Facebook – Marketplace, Messenger, live video, etc. My clone, which I called Phacebook, captures some of the core elements of the original, such as secure login (made possible through Devise,) requesting/confirming friends, creating posts, including images in posts, as well as liking and commenting on posts.

Categories
Ruby on Rails The Odin Project

Rails Helper form_with Not Working As Expected

I recently encountered a stumbling block when using form_with in a Rails application I was building. No matter what I tried, the form did not work as I expected it to – on submitting the form, nothing would happen. The button appears to press successfully, the parameters get sent to the server, but the information displayed in the current view would not change.

Categories
Ruby on Rails The Odin Project

How to Delete from a Join Table in Rails

While working on a project within theOdinProject’s curriculum, I found myself facing a challenge: How to create a link in my Rails app that would delete the record in the join table that establishes a relationship between two objects. In my specific project, “private-events,” I had several users, and several events, which were connected through a join table of invitations. My goal was to build a dynamic link to delete the record in the join table that connects the user with the event he was attending.