Autosave Drafts With Stimulus And Turbo | Ruby On Rails 7 Tutorial
Use Stimulus to autosave posts as drafts while using Turbo to render a flash messages telling the user the draft was autosaved!
https://www.youtube.com/watch?v=DS6DJjrvg5c
Use Stimulus to autosave posts as drafts while using Turbo to render a flash messages telling the user the draft was autosaved!
https://www.youtube.com/watch?v=DS6DJjrvg5c
YouTube
Autosave Drafts With Stimulus And Turbo | Ruby On Rails 7 Tutorial
Use Stimulus to autosave posts as drafts while using Turbo to render a flash messages telling the user the draft was autosaved!
Checkout my course(s) at: https://learn.deanin.com
Source:
https://github.com/Deanout/rails_autosave_drafts
Join this channel…
Checkout my course(s) at: https://learn.deanin.com
Source:
https://github.com/Deanout/rails_autosave_drafts
Join this channel…
❤1
Big News: Ruby Version 3.0
Ruby 3.0 performance: no more issues
Everybody knows Ruby is the perfect language for MVPs, prototypes, and startups, but Ruby’s speed is definitely the biggest issue with the programming language. People claim that the language needs to be faster for massive projects. Do you agree? If so, you’ll enjoy the updated Ruby 3.0. In 2020, Ruby 3 will be three times faster than the current Ruby version thanks to Ruby’s performance optimization.
https://sloboda-studio.com/blog/big-news-ruby-version-3-0/
Ruby 3.0 performance: no more issues
Everybody knows Ruby is the perfect language for MVPs, prototypes, and startups, but Ruby’s speed is definitely the biggest issue with the programming language. People claim that the language needs to be faster for massive projects. Do you agree? If so, you’ll enjoy the updated Ruby 3.0. In 2020, Ruby 3 will be three times faster than the current Ruby version thanks to Ruby’s performance optimization.
https://sloboda-studio.com/blog/big-news-ruby-version-3-0/
Ruby on Rails #101 iCalendar and .ics format. Add events to calendar
https://www.youtube.com/watch?v=CVt5LQfi8Dk
https://www.youtube.com/watch?v=CVt5LQfi8Dk
YouTube
Ruby on Rails #101 iCalendar and .ics format. Add events to calendar
Learn to create valid calendar events, that a user can download as an .ics file and add to his calendar!
Resources:
- text version of this video: https://blog.corsego.com/icalendar-ruby
- source code: https://github.com/corsego/101-icalendar/commit/9ff3…
Resources:
- text version of this video: https://blog.corsego.com/icalendar-ruby
- source code: https://github.com/corsego/101-icalendar/commit/9ff3…
Ruby-on-Rails bullet gem tutorial
Rails bullet gem is here to solve the N+1 query problem. Let's create this problem first, and solve it thanks to the Rails bullet gem.
https://www.bootrails.com/blog/rails-bullet-gem-tutorial/
Rails bullet gem is here to solve the N+1 query problem. Let's create this problem first, and solve it thanks to the Rails bullet gem.
https://www.bootrails.com/blog/rails-bullet-gem-tutorial/
Bootrails
Ruby-on-Rails bullet gem tutorial
Prequisites
Forwarded from Ruby on Rails | rubyhub
Ruby on Rails #102 Email Calendar Invite
In the PREVIOUS episode we generated .ICS files, that can be downloaded and added to your calendar. In THIS episode we will EMAIL calendar invites and automatically add them to a users calendar! We will also handle updating/cancelling events!
https://www.youtube.com/watch?v=UhtKk6w1fwU
In the PREVIOUS episode we generated .ICS files, that can be downloaded and added to your calendar. In THIS episode we will EMAIL calendar invites and automatically add them to a users calendar! We will also handle updating/cancelling events!
https://www.youtube.com/watch?v=UhtKk6w1fwU
YouTube
Ruby on Rails #102 Email Calendar Invite
In the PREVIOUS episode we generated .ICS files, that can be downloaded and added to your calendar.
In THIS episode we will EMAIL calendar invites and automatically add them to a users calendar!
We will also handle updating/cancelling events!
Episode source…
In THIS episode we will EMAIL calendar invites and automatically add them to a users calendar!
We will also handle updating/cancelling events!
Episode source…
👍1
How to implement Decorator pattern in Ruby on Rails?
https://dev.to/vladhilko/how-to-implement-decorator-pattern-in-ruby-on-rails-7ji
https://dev.to/vladhilko/how-to-implement-decorator-pattern-in-ruby-on-rails-7ji
DEV Community
How to implement Decorator pattern in Ruby on Rails?
Decorator design pattern allows us to add new functionality to an object without affecting the...
👍7
Learn Hotwire by Building a Forum
Want to learn how to use Hotwire to progressively enhance your applications? In this course we'll build a real-time forum and get into use-cases that aren't as simple as the Hotwire chat demo.
https://store.afomera.dev/view/courses/learn-hotwire
Want to learn how to use Hotwire to progressively enhance your applications? In this course we'll build a real-time forum and get into use-cases that aren't as simple as the Hotwire chat demo.
https://store.afomera.dev/view/courses/learn-hotwire
Hotwire, ViewComponents and TailwindCSS: The Ultimate Rails Stack
It is a Stock ticker viewer, built with Rails, Hotwire, ViewComponents and TailwindCSS with a grand total of 7 lines of Java script!
https://blog.cloud66.com/hotwire-viewcomponents-and-tailwindcss-the-ultimate-rails-stack
It is a Stock ticker viewer, built with Rails, Hotwire, ViewComponents and TailwindCSS with a grand total of 7 lines of Java script!
https://blog.cloud66.com/hotwire-viewcomponents-and-tailwindcss-the-ultimate-rails-stack
👍2
Deploy a Ruby on Rails app with Render.com
With the end of Heroku’s free tier hosting services a lot of people are looking for alternatives. I have found Render to be a great service for hosting individual and side projects, especially with Rails. In this article I’ll go through how to set up your app for deployment with Render from start to finish.
https://medium.com/@laura_brooks/how-to-deploy-a-ruby-on-rails-app-with-render-com-9a824193e636
With the end of Heroku’s free tier hosting services a lot of people are looking for alternatives. I have found Render to be a great service for hosting individual and side projects, especially with Rails. In this article I’ll go through how to set up your app for deployment with Render from start to finish.
https://medium.com/@laura_brooks/how-to-deploy-a-ruby-on-rails-app-with-render-com-9a824193e636
👍4
Ruby on Rails #105 parse JSON and YAML
JSON and YAML are great ways of storing data structures.
You can parse a JSON/YAML file directly with Ruby, or within a Rails application.
You can also WRITE to the file!
Popular usecases:
- parse file and create seed data
- display parsed default data directly in a view (for example FAQ section)
https://youtu.be/55qBySBH_8k
JSON and YAML are great ways of storing data structures.
You can parse a JSON/YAML file directly with Ruby, or within a Rails application.
You can also WRITE to the file!
Popular usecases:
- parse file and create seed data
- display parsed default data directly in a view (for example FAQ section)
https://youtu.be/55qBySBH_8k
YouTube
Ruby on Rails #105 parse JSON and YAML
JSON and YAML are great ways of storing data structures.
You can parse a JSON/YAML file directly with Ruby, or within a Rails application.
You can also WRITE to the file!
Popular usecases:
- parse file and create seed data
- display parsed default data directly…
You can parse a JSON/YAML file directly with Ruby, or within a Rails application.
You can also WRITE to the file!
Popular usecases:
- parse file and create seed data
- display parsed default data directly…
👍2
FormService: a PORO ServiceObjects with a state
The ServiceObject pattern is a powerful way to encapsulate specific business actions or workflows in Ruby on Rails. By separating concerns and keeping your controllers lean, ServiceObjects can help make your codebase more maintainable and easier to understand.
https://dev.to/povilasjurcys/formservice-a-poro-serviceobjects-with-a-state-4a75
The ServiceObject pattern is a powerful way to encapsulate specific business actions or workflows in Ruby on Rails. By separating concerns and keeping your controllers lean, ServiceObjects can help make your codebase more maintainable and easier to understand.
https://dev.to/povilasjurcys/formservice-a-poro-serviceobjects-with-a-state-4a75
DEV Community
FormService: a PORO ServiceObjects with a state
The ServiceObject pattern is a powerful way to encapsulate specific business actions or workflows in...
👍3
abi2ruby gem - generate ready-to-use contract services for Ethereum & Co.
abi2ruby that lets you generate ready-to-use (blockchain) contract services / function calls for ethereum & co. via application binary inferfaces (abis). See the abi2ruby readme for some first real-world examples. Happy blockchaining with ruby. Cheers. Prost.
https://github.com/rubycocos/blockchain/tree/master/abi2ruby
abi2ruby that lets you generate ready-to-use (blockchain) contract services / function calls for ethereum & co. via application binary inferfaces (abis). See the abi2ruby readme for some first real-world examples. Happy blockchaining with ruby. Cheers. Prost.
https://github.com/rubycocos/blockchain/tree/master/abi2ruby
❤1
Advanced interview questions for a Ruby developer
Have you ever felt frustrated when trying to prepare for an interview, and getting only questions like what is an MVC or what is the difference between a Class and a Module? Well, me too…
https://medium.com/@real_wyodeb/advanced-interview-questions-for-a-ruby-developer-65ba774c2ca9
Have you ever felt frustrated when trying to prepare for an interview, and getting only questions like what is an MVC or what is the difference between a Class and a Module? Well, me too…
https://medium.com/@real_wyodeb/advanced-interview-questions-for-a-ruby-developer-65ba774c2ca9
🔥1
RSpec best practices
Rspec is a great tool in the behavior driven design process of writing human readable specifications that direct and validate the development of your application. We’ve found the following practices helpful in writing elegant and maintainable specifications.
https://blog.carbonfive.com/rspec-best-practices/
Rspec is a great tool in the behavior driven design process of writing human readable specifications that direct and validate the development of your application. We’ve found the following practices helpful in writing elegant and maintainable specifications.
https://blog.carbonfive.com/rspec-best-practices/
👍2
Making the Most of Your Logs in Rails
Most people only realize the necessity of logs when they need them the most. But when your application breaks, user complaints start flooding in, and you have no clue how to fix it, it's too late to add some log messages that might have helped.
https://blog.appsignal.com/2023/03/01/making-the-most-of-your-logs-in-rails.html
Most people only realize the necessity of logs when they need them the most. But when your application breaks, user complaints start flooding in, and you have no clue how to fix it, it's too late to add some log messages that might have helped.
https://blog.appsignal.com/2023/03/01/making-the-most-of-your-logs-in-rails.html
🔥1
Toast Notifications with Tailwind and Stimulus | Ruby On Rails 7 Tutorial
https://youtu.be/IcSlY463W14
https://youtu.be/IcSlY463W14
YouTube
Toast Notifications with Tailwind and Stimulus | Ruby On Rails 7 Tutorial
These Tailwind Flowbite toast notifications are dismissible on click, as well as with animations thanks to Stimulus and Ruby on Rails 7.
Checkout my course(s) at: https://learn.deanin.com
Tailwind and Stimulus make for some very quick component creation…
Checkout my course(s) at: https://learn.deanin.com
Tailwind and Stimulus make for some very quick component creation…
🆒3
Minitest vs. RSpec in Rails
Rails defaults to minitest, but much of the community has adopted RSpec—which is right for you? In this article, William Kennedy compares RSpec and Minitest in a new Rails app.
https://www.honeybadger.io/blog/minitest-rspec-rails/
Rails defaults to minitest, but much of the community has adopted RSpec—which is right for you? In this article, William Kennedy compares RSpec and Minitest in a new Rails app.
https://www.honeybadger.io/blog/minitest-rspec-rails/
Honeybadger Developer Blog
Minitest vs. RSpec in Rails
Rails defaults to minitest, but much of the community has adopted RSpec—which is right for you? In this article, William Kennedy compares RSpec and Minitest in a new Rails app.
🔥4