The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Beautiful, fast server-rendered apps with Rails and StimulusJS
This post shows how to use StimulusJS, RailsUJS and server-rendered HTML with built in transitions and DOM manipulation: https://www.thecrapthatcomesoutofmyhead.com/2020/06/24/building-beautiful-fast-apps-with-rails-and-stimulusjs/
A simple gem for dealing with side effects
This gem makes it easy to create commands that keep track of side effects. If an error happens then each command can be undone again. https://github.com/sammyhenningsson/file_transactions
ExceptionNotification v4.4.1 is out 🚀
v4.4.1 has just been released! It includes some enhancements to ignore exceptions, and more data for Mattermost notifier. https://rubygems.org/gems/exception_notification/versions/4.4.1
Rails architecture tips from route helpers
A subtle feature of named route helpers gave me a new appreciation for the attention to detail that the authors of the Rails framework put into making it a pleasant development experience: Rails architecture tips from route helpers
9 tips to improve RSpec maintainability
Use the right tool at the right place for the right purpose https://medium.com/@ntd251/9-tips-to-write-better-rspec-5569b45fb1a1?source=friends_link&sk=b2e37ac847a5ff8f89ebbf923a601c6a
Installing SimpleCov for test code coverage with RailsBytes
Rails app templates are an awesome way to make interactive install scripts. In this screencast, we’ll show you how to write a RailsByte app template that installs simplecov for both minitest and rspec. Watch the SimpleCov & RailsBytes screencast
Ruby on Rails Development: Obstacles, Opportunities, and RubyGems
Ruby on Rails development provides several opportunities in 2020. Here’s how Ruby on Rails web development can help you overcome obstacles. There’s also a list of some of the best RubyGems. https://www.botreetechnologies.com/blog/ruby-on-rails-development-obstacles-opportunities
Last day to take the Ruby on Rails Community survey!
Take 10 minutes to share your experience using Ruby on Rails in the 2020 Ruby on Rails Community Survey. [more inside]
GitHub-style Hovercards with Stimulus and HTML-over-the-wire
Turbolinks, Stimulus, and Server Rendered HTML is a compelling alternative to modern JavaScript single page apps. Let’s build a hovercard to see how you can kick it old school with a more boring approach. https://boringrails.com/articles/hovercards-stimulus/
Graceful Request Retries in Ruby Applications
Failure Management, Fallbacks, Exponential backoff, Tools and Patterns [more inside]
Rails/Docker/Kubernetes-Helm/Github CI OSS boilerplate
A demo “classic” stack application (Rails, Sidekiq, Puma, Redis, PostgreSQL, Action Cable, Webpacker, Stimulus) deployable to Digital Ocean Kubernetes cluster in minutes with Github Actions CI. Boilerplate is based on the work of Le Wagon and Evil Martians [more inside]
Use Github Actions to secure Rails PRs
Using a pronto plugin for the popular brakeman gem, you can setup a Github Action to check for security issues on your PR within minutes. [more inside]
Truemail 🚀 configurable framework agnostic plain Ruby 📨 email validator
Truemail 1.8.0 has been released! 🚀🚀🚀 Added separated audit features for verifier host. Be sure that email address valid and exists. https://github.com/rubygarage/truemail
Huge Theme and Workflow Advances in Bridgetown 0.15 “Overlook”
Whew, a lot has happened since the last release of Bridgetown. The community has been growing on Twitter and in Discord, we’ve gotten new sponsors on GitHub, and a ton of work to move the ecosystem forward has been going on behind the scenes. It’s time to unveil some of those initiatives today with the release of Bridgetown 0.15 “Overlook”!
Web Scraping with Ruby
A pretty thorough overview on how to do web scraping with Ruby. The post covers working with HTTParty, Nokogiri and the Kimurai web scraping framework.
Top Web Development Frameworks in 2020
The top web app development frameworks enable building robust web applications. Here are the top web app development frameworks for succeeding with your web applications in 2020. https://www.codementor.io/@samwatt/top-web-app-development-frameworks-in-2020-17h1root5t
Embracing Perspectives with the Rails Router
A simple Rails routing convention that could have a huge impact on how you organize and discover code in your applications. [more inside]