Let's Build: A Twitter Clone with Ruby on Rails 7 - Part 4 - Retweeting Tweets
Web-Crunch
PART 4 of 6
Timestamps:
00:19 - Debugging empty states from Part 3 02:44 - Create migration for retweets 03:15 - Update Tweet routing to extend for retweets 04:00 - Create tweet_type method for easier use later 05:38 - Add retweet action and logic to the TweetsController 07:14 - Add retweet turbo_stream response 08:15 - Update retweet controls on tweets 09:46 - Create a retweet partial view file 11:29 - Debugging retweet logic 12:24 - Bug fix - Bypass validations for retweets 13:48 - Update tweets index list 16:00 - Bug fix for retweets
What's in this part? In Part 4 I add the retweeting functionality to the app.
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.
=======
Hi, My name is Andy Leverenz and I work as a product designer and developer. For fun, I design, code, and write. Check out my blog called Web-Crunch https://web-crunch.com where I publish design and development tutorials with the occasional vlog.
♥️ Sponsor me on GitHub https://github.com/sponsors/justalever
☕️ Keep me awake. Buy me a coffee https://www.buymeacoffee.com/webcrunch
📰 One-Click Subscribe: https://www.youtube.com/user/webcrunchblog?sub_confirmation=1
💻 Previously published at: https://web-crunch.com/posts/lets-build-with-ruby-on-rails-7-twitter-clone
💎Ruby on Rails Course: HELLO RAILS https://hellorails.io
💻 Check out the blog: https://web-crunch.com
🦄 Check out my personal site: https://justalever.com
🚀 Links: Weekly Newsletter: https://digest.web-crunch.com/ Twitter: https://twitter.com/webcrunchblog Github: https://github.com/justalever
📘Check out my book on UX Design: "LUXD: Learn User Experience Design" https://web-crunch.com/products/luxd
📙 Check out my FREE book on Tumblr Theming: "Pro Tumblr Theming" https://web-crunch.com/products/ptt ... https://www.youtube.com/watch?v=KqBmC-tUOIM
61438516 Bytes