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.
Top 12 Website Examples Built with Ruby on Rails
These 12 top websites built with Ruby on Rails and are the leaders in the industry. Check out the best examples that use the Ruby on Rails. https://www.botreetechnologies.com/blog/top-website-examples-built-with-ruby-on-rails/
Using Postgres Row-Level Security in Ruby on Rails
Learn how to create and implement a row level security policy in Rails, allowing to limit the database rows a user can access. [more inside]
SpreeConf 2021 - free online event for Ruby on Rails and Spree Commerce enthusiasts
SpreeConf is all about sharing Ecommerce know-how. We’ve invited developers, founders, and industry experts behind some of the most successful businesses using Spree from around the world. [more inside]
Extralite: An extra-lightweight Ruby gem for working with SQLite3 databases
Extralite is a new Ruby gem for working with SQLite3 databases. For more information: https://github.com/digital-fabric/extralite
Understanding Ruby Method Lookup
Ruby lets you express yourself like few other languages, with a minimum of boilerplate. It’s fantastic until it isn’t. Until one day when you think you’re calling the foo method you wrote last week, but instead, you end up calling a foo method that came with some gem from 2008. In these situations, knowing about Ruby’s method lookup rules will save your bacon.
https://www.honeybadger.io/blog/ruby-method-lookup/
Ruby On Rails Web Development
https://blog.engineyard.com/ruby-on-rails-web-development/?utm_source=RubyFlow This post describes Ruby On Rails, what types of applications it’s best suited for, and some useful examples of websites built on Ruby On Rails.
[Fix] Missing top level class documentation comment Rubocop
Disable or fix the warning “Missing top-level class documentation comment” in 3 different ways. [more inside]
How conditional GET requests & fresh_when work in Rails
I wrote a long(ish) Twitter thread on how conditional GET requests work in Rails, with a Rails source code walk-through. It also explains how cache keys are created and can be used to cache objects and Active Record relations in combination with Rails’ fresh_when.
How to host your Rails app on Heroku for free
An exhaustive guide on how to leverage heroku’s free plans for your next side project.
New tty-sparkline gem
The tty-sparkline gem renders sparkline charts in your terminal applications. You can control the display by configuring width, height, minimum, maximum and more. The charts can also be coloured based on data values that can be given upfront or streamed. Enjoy!
How to Build Your Own Gem in Ruby
https://blog.engineyard.com/how-to-build-your-own-gem-in-ruby?utm_source=RubyFlow As the name implies, the Ruby programming language thrives thanks to the presence of gems.
Rails Conf 2021 Talks for Early Career Devs
Rails Conf 2021 talks are on YouTube. Great! You just need to go through all the 60+ talks to choose one to watch. Are you an early career dev? Look no more. [more inside]
Best Project Management Methodology for Ruby on Rails App Development in 2021
Agile methodology is emerging as the new winner for RoR application development. Here’s why project management is perfect for RoR app development services. https://www.botreetechnologies.com/blog/project-management-methodology-for-ruby-on-rails-app-development/
Limit your automatic retries
Short blogpost (with examples) explaining why rescue ... retry without retry limits is not a good idea. [more inside]
finviz.com access from Ruby
Take a look at unofficial API to https://finviz.com [more inside]
WSL for Rails developers
With WSL, the Windows Subsystem for Linux, we can now run a Linux distribution within Windows 10. [more inside]
Automatically avoiding GraphQL N+1s
It’s hard to optimize queries when you don’t know in advance what the query will be. To avoid an explosion of database requests when a GraphQL query fetches nested data, it seems like you would need to analyze the query and create a plan for executing it efficiently. But that’s a lot of work, complex, and prone to mistakes. So how can you provide an API that’s not only flexible, but also performs well?
Rails Security Threats: Injections
One of the best things about Rails is that it protects your app from a wide variety of injection attacks with minimal development effort. But we’re never 100% safe. After all, Rails can’t protect us from our own bad decisions. We need to understand the threats so we know when we can lean on Rails and when we can’t. In this article, Diogo Souza introduces us to the OWASP Top 10 list of vulnerabilities and dives into injection vulnerabilities to show us how rails protects us against them and how we can protect ourselves. https://www.honeybadger.io/blog/rails-security-injections/
Rails with Webpacker : a full setup from scratch
Webpacker is a wrapper around Webpack, but is not fully used in a default new Rails application. Let’s see how to set up Rails with Webpacker, in order to use any kind of frontend assets. https://bootrails.com/blog/rails-webpacker-full-setup
Ruby on Roda - REST APIs with Roda & Sequel
Learn how to build a maintainable JSON REST API by using the Roda and Sequel and dry-rb set of gems. Move away from messy, traditional Rails code and move towards crisp, clean code. For the Rubyflow community, I prepared 20% discount: [more inside]