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.
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]
Learn how to get started with DynamoDB in Rails
Published an article explaining how to get started with DynamoDB in Rails Working with DynamoDB , which covers how to create tables, setup and choose indexes, popular use cases along with Batch operations and Conditional writes. [more inside]
The sacrifices we make to our health as programmers
Read this post on the short-term sacrifices that we make to our health as programmers that ultimately have long-term effects.
Rails Techniques: Using Polymorphic Associations
A polymorphic association is an Active Record association that can connect a model to multiple other models. Here’s how to implement polymorphic associations in Rails.
Batching – A powerful way to solve N+1 queries every Rubyist should know ☝️
I published the post about batching as a technique which helps avoid N+1 queries, existing battle-tested tools like Haskell Haxl and JavaScript DataLoader, and how similar approaches can be used in any Ruby code including RESTful APIs and GraphQL: https://engineering.universe.com/batching-a-powerful-way-to-solve-n-1-queries-every-rubyist-should-know-24e20c6e7b94
Yet another introduction to pundit gem
Security is an important aspect of application development. Two main components of security are Authentication (Who are you?) and Authorization (are you supposed to be here?). Authentication verifies the user’s identity while authorization verifies whether that user has access rights on certain resources to perform actions on them. [more inside]
Real time rails with Action Cable
A guide describing how Action Cable works in Ruby on Rails to enable Real time applications: https://www.icicletech.com/blog/real-time-rails-with-action-cable
Handle sidekiq processing when one job saturates your workers and the rest queue up
A list of potential solutions in a situation when one of your sidekiq jobs starts to misbehave and affects the whole system’s stability: http://blog.arkency.com/2017/07/sidekiq-slow-processing-one-job-saturates-workers-rest-queue-up/
Funding to maintain your open source libraries
Our company just launched which helps open source (gem) developers find money through sponsorships. We would love your feedback. https://github.com/codesponsor/dev
When to take a Rails deep dive
Have you ever found a Rails topic that didn’t make any sense to you? When you kind of know enough to get by, except you spend so much time fighting edge cases that you could have been an expert in it by the time you were done? That might mean it’s time for a deep dive.
RSpec addons for DRYer specs
saharspec is a newly released gem with a small but growing set of additional features for RSpec: some new matchers and its-style goodies.
Automating a redirect_to / flash cleanup
Some notes on automating a redirect_to / flash cleanup with synvert.
I Love Ruby has a permanent website
I Love Ruby Book now has a permanent website. You can get it here https://mindaslab.github.io/I-Love-Ruby/
APIQ Models and SEO extensions 1.0 releases
Following the APIQ CMS 1.0 release, recently the most useful extensions were updated as well. Learn what’s new: https://www.apiq.io/2017/08/14/apiq-models-and-seo-1.0-release/
How I got RSpec to load 50 times faster
RSpec load time is important in a TDD workflow. Here’s how I got mine to be lightning-fast. https://schwad.github.io/ruby/rails/testing/2017/08/14/50-times-faster-rspec-loading.html
[Screencast] Recurring Events with ice_cube
ice_cube is a ruby library for easily handling repeated events and schedules. https://www.driftingruby.com/episodes/recurring-events-with-ice_cube