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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
You are probably familiar with the “
if else” control flow but there are certain situations where there may be a visually better way to write these statements. Here we will discuss how you can achieve this via the
unless keyword in Ruby and the different ways you can use it. [more inside]
Rails 7 supports application-level encryption. We can declare which attributes should be encrypted and, ActiveRecord will encrypt and decrypt when necessary. https://blog.saeloun.com/2021/06/09/rails-7-add-encryption-to-active-record
Wrote a lengthy article on how to utilize conditional HTTP GET requests as a caching mechanism, with examples in Rails. Check it out here.
https://semaphoreci.com/blog/dave-thomas-testing-past-present-future 🎧 An interview about the impact of testing and how software engineering has changed over many decades.
In Rails 7, the autosave association callbacks for the has_one are non-cyclic. [more inside]
Wrote a small Rails template to convert a new Rails app to be ready to be deployed on Heroku. [more inside]
In earlier installments of this series, Alex Stoll guided us through creating a lexer and a parser. These translated the human-readable source code into data structures. In this article, he begins work on the interpreter - the bit that actually runs our code! https://www.honeybadger.io/blog/building-interpreter-ruby/
I’ve put together a summary of my thoughts related to Open-Source work and financing https://hanamimastery.com/articles/hanamimastery-origins [more inside]
I don’t get around to doing these too often, but they are always a lot of fun. In this episode, we’ll look at ten different Ruby on Rails tips and tricks. https://www.driftingruby.com/episodes/10-tips-and-tricks
Want to remove Sprockets from your Rails application? Is it even possible to do it on a large legacy app? Here’s a list of examples to help you depending on the size and complexity of your project: Move From Sprockets to Webpacker On Small to Large Rails Apps