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.
Ruby gem for OpenStreetMap API
I wrote simple ruby gem for using OpenStreetMap API [more inside]
Do not put Rails on the whale
Having trouble using Rails inside docker? Just give up: https://medium.com/@kdiogenes/do-not-put-rails-on-the-whale-4bb6be0168b3
Six Tips for Mastering your Procfile
Not strictly Ruby, but definitely useful if you deploy a Rails app to Heroku. It’s a quick read with some simple ways to leverage a Procfile to run your application processes.
How to Test Ruby Modules With Rspec
When you have a module that you include in other classes, the way you test it might not be obvious. Testing ruby modules will be easier after you read this tutorial.
Instant page loads with Turbolinks and prefetch
Turbolinks can dramatically speed up your website by not requiring and evaluating CSS and Javascript for each pageload. Instantclick will preload any links when you hover over them instead of when you click. What about having Turbolinks AND “instant clicks”? [more inside]
Numbers and Class Hierarchy in Ruby
In this article we’re going to explore the following topics:
sportdb Gem/Library Guide - Working w/ Football CSV Files - English Premier League
Hello, I’ve written-up a hands-on getting started guide for the new sportdb text library / gem. Let’s build the standings table for the English Premier League (EPL) for the 2017/18 season from all 380 matches in the comma-separated values (.csv) format. Full article titled “Working with CSV Files”. Enjoy the beautiful game with ruby.
3 Practical Examples Of Ruby Blocks
Have you ever wanted to learn how to use Ruby blocks in a practical way? In this video I’ll show you how: https://www.youtube.com/watch?v=92yuNm6Ts0c
Top Spree E-Commerce Extensions to Build Ruby E-Commerce Store
Spree E-Commerce is a complete, scalable, API-driven open source E-commerce framework built with Ruby on Rails. Spree is well suited to serve as a custom technology platform to build any type of an E-commerce application. https://www.icicletech.com/blog/top-spree-ecommerce-extensions-to-build-ruby-ecommerce-store
Spreadsheet Architect celebrates 800 Stars on GitHub!
I would like to celebrate and share with you that my most popular open source project, Spreadsheet Architect, has recently surpassed 800 Stars on GitHub. It makes me happy to know that it has helped many people in their Ruby programming endeavours. I hope this library continues to help you the same way it has aided me. What is this gem? Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets super easily from ActiveRecord relations, plain Ruby objects, or tabular data. https://github.com/westonganger/spreadsheet_architect
Let vs. Let! vs. Instance Variables in RSpec
A common source of confusion when using RSpec is whether to use let, let!, or an instance variable, for storing state. https://mixandgo.com/learn/let-vs-instance-variables-in-rspec
How I Create a New Ruby on Rails Project
This is the process I use to create a new Ruby on Rails project. I usually use the latest stable version of Ruby/Rails and it’s companion gems. https://mixandgo.com/learn/how-i-create-a-new-rails-project
The nil value in Ruby
In this article we’re going to explore the following topics:
Everything You Need to Know About Ruby Operators
Ruby has a lot of interesting operators, like the spaceship operator & the modulo assignment operator. But did you know that many of these operators are Ruby methods? Learn more here: https://www.rubyguides.com/2018/07/ruby-operators/
Easy GraphQL Caching for Ruby/Rails
We have released a gem that allows you to make any graphql-ruby field easily cacheable by simply adding “cache: true” to them.
Podcast interview - Aaron Sumner, author of Everyday Rails Testing with RSpec
Aaron Sumner’s excellent book, Everyday Rails Testing with RSpec, is frequently recommended as a resource for newcomers to Rails testing. Today I interviewed Aaron on The Ruby Testing Podcast. http://www.rubytestingpodcast.com/aaron-sumner
Rspec File Chef - File Environment control
RSpec File Environment control. Keeper of current state of tracked files and temporary files cleaner. https://github.com/bestwebua/rspec_file_chef
Thin and maintainable Rails mailers: how we refactored Rails mailers at mkdev
Our developer Yauheni drastically refactored all the mailing system code with the new Rails 5.1 features. We made him to share the story in a new article in the series ‘Development of mkdev’. Read it to find out how to make mailers in Rails simpler, smaller and more flexible. [more inside]
Designing a Successful Microservices Engineering Culture
Learn how to ensure your team culture meshes well with a microservices architecture
JavaScript-sprinkled Rails Applications
Serving a page from the cache with user-specific dynamic data? JavaScript sprinkles can load just the dynamic bits while the rest of the page comes straight from the cache.