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.
Goby v0.1.0 is out
Remember there was a language called Rooby, which said it want to help developing microservices more efficiently? In the past few months it quickly evolved and it’s now called Goby! [more inside]
Trailblazer + GraphQL Starter kit
sinatra-grapqhl is an opinionated starter kit to use sinatra with trailblazer, react and grapqhl
Small functions considered awesome
There’s been some controversy lately, so I wanted to throw my two cents in. Small functions are awesome!
How do you do a Rails deep dive?
Did your code break in such a weird way that you wonder if you really understand it at all? It might be time for a deep dive. But knowing you need to dive deeply into a topic? That’s only step 1. How do you actually learn a Rails topic down to its fundamentals?
Spree 3.3 with Rails 5.1 support released!
Spree is a complete modular, API-driven open source e-commerce solution built with Ruby on Rails. We’re super happy to announce Spree 3.3 release with Rails 5.1 & Ruby 2.4 support, Segment integration, enhanced data integrity and many more features contributed by the Spree Community Major new features: [more inside]
Do you know? Adding SSL will make your site more visible
Nowadays security is a major concern. Do you know adding SSL will make your site more visible in search results? Add SSL in very easy step by following: http://www.mayurkumar.info/blog/Adding-SSL-will-make-your-site-more-visible/
Introdutions to : Threads, Queue and SizedQueue
To make our applications do multiple things faster at the same time, we can use Ruby threads. For a long-running application, re-using a pool of such threads can provide great performance benefits. Thread pool is a way to have a fixed set of threads doing the work, instead of creating new ones each time. [more inside]
Exporting rails models to CSV and XLSX
Xport is a new gem that helps create XLSX/CSV files from rails models.
Finding Fibonacci In Golden Trees
When we learn about super theoretical stuff (like a lot of core computer science concepts) it’s hard to connect the dots between where these concepts were created, why we use them, and why we should care. In this post, however, mathematics, computer science, and nature all come together in the most magical of ways.
'String Sanitizer' gem
This is a gem about Sanitizing any string. This gem is in beta version so it doesn’t have much features, but it has 1. Escaping Quotes, 2. Encoding and Decoding HTML Entities. Any contribution is warmly welcome. The gem’s repo - Str_Sanitizer
Auther 8.0.0
The Auther gem/engine is a great tool for situations where you need to temporarily lock down an app before a major authentication system is added. With this release, it simplifies the stylesheets by using CSS Flexbox layout and removes unnecessary gem dependencies for a more light weight experience. Enjoy!
Active Record’s queries tricks
My favourite part of Rails is ActiveRecord’s scopes. Their expressiveness and their reusability is great. See here a few tricks I usually bring during consulting missions.
Writing Slack Commands APIs in Ruby
In this series of posts, I’m going to share with you how to setup a new Slack Command API using Ruby and Heroku as backend service. [more inside]
[Screencast] Recurring Events with FullCalendar
Create recurring events and interact with them on FullCalendar. https://www.driftingruby.com/episodes/recurring-events-with-fullcalendar
Tutorial: How to use a Rails 5.1 API with React.js to make an Idea board app
Learn how to use a Rails 5.1 API with React.js by building an Idea board app. The Idea board is a simple board which displays ideas in the form of square tiles. We can add ideas, edit existing ideas and delete ideas. The tutorial covers many practical concepts including stateless functional components, class-based components, use of axios for making API calls, immutability-helper and more. You’ll also get access to the complete code.
unique_validation_inspector v0.1.2 release with Rails5 improved support
Improved unique_validation_inspector work with abstract models which is standard for Rails5 applications
Six confusing features in Ruby
This post is trying to point out some Ruby features e.g. Delegator, Integer#zero? which you might want to use with a lot of cautions. [more inside]
tty-pager v0.9.0 release
Improved tty-pager with SystemPager that works on Windows and JRuby. Enjoy and happy hacking!
How we solved Ruby's noisy logs
Our logs were noisy, hard to read, hard to search, and hard to parse. This post shares how we solved Ruby’s noisy logs.
Visual & textual diff to highlight proposed DB changes to your team
Our team had challenges communicating large Information Architecture changes to our DB. This is the process we follow now that generates easy to digest visual & textual documentation via Rails toolchain. Here are the related slides when we introduced it to the team.
What I learned about ActiveRecord from reading spreadsheet_architect code
I tried to avoid including SpreadsheetArchitect in my ActiveRecord class and it turned out to be trickier than I expected but I learned something new.
How to have same enum values for multiple columns in rails
Have you ever had to have same enum on multiple column on same model? https://goo.gl/MwKa2L
Querying and Pagination with DynamoDB
In this article of three part article series on DynamoDB Querying and Pagination with DynamoDB , I explained in depth different ways of querying, importance of choosing proper indexes and table structure for allowing flexible querying, and most importantly why and how to add pagination support. [more inside]