Let's Build: A Twitter Clone with Ruby on Rails 7 - Part 3 - Deleting Tweets

preview_player
Показать описание
PART 3 of 6

Timestamps:
00:20 - Delete logic in Tweets Controller
01:43 - Extract static tweet controls to a partial file
02:32 - Add delete button_to view helper
04:21 - Trying to delete the first tweet
04:51 - Bug fix for turbo_stream response to tweets
06:50 - Handling empty states

What's in this part?
In Part 3 I add the first of many controls for a user to take action on a tweet. The easiest to start with is deleting tweets. We'll only want Tweet authors to delete those. All this and more in the video!

Series description:
If you have followed me for some time you might remember a series I did on Ruby on Rails titled “Let’s Build”. These guides were a “learn in public” exercise I tasked myself with that ultimately resonated with a number of folks.

This specific mini-series is going to focus on redoing an older “Let’s Build” where I took on building a Twitter clone.

Since the advent of Rails 7, the way you might approach new problems when building software has changed a great deal. I wanted to take the opportunity to create some fresh content and show you how to leverage some new features of Ruby on Rails along the way.

=======

♥️ Sponsor me on GitHub

☕️ Keep me awake. Buy me a coffee

📰 One-Click Subscribe:

💻 Previously published at:

💎Ruby on Rails Course: HELLO RAILS

💻 Check out the blog:

🦄 Check out my personal site:

🚀 Links:

📘Check out my book on UX Design:
"LUXD: Learn User Experience Design"

📙 Check out my FREE book on Tumblr Theming:
"Pro Tumblr Theming"
Рекомендации по теме