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.
Migrating to RSpec 3.7 and system specs
In my first post to Everyday Rails of 2018, I share my notes and impressions on migrating my RSpec book’s sample app to RSpec 3.7 and system specs, along with a couple of tips for those of you who can’t upgrade to Rails 5.1 quite yet but still feel some feature envy.
New Planet Jekyll Snippets - Liquify Filter, Auto-Gen TOC, ... Thks @ddprrt
Hello, I’ve added three new snippets to the Planet Jekyll collection, that is, a liquify filter, a toc filter that auto-generates a table of contents, and a liquid tag example with custom includes directory lookup. Thanks to Stefan Baumgartner (@ddprrt) for initialy publishing / sharing the great snippets on the Fett.eu blog. PS: Add your snippets to the Planet Jekyll collection! Updates more than welcome.
Ruby on Rails 5.2.0 Changes and New Features
Upcoming features include ActiveStorage, built-in Redis Cache Store, updated Rails Credentials and a bunch of other cool things! Honorable mentions also to the new Stimulus Javascript Framework. https://www.driftingruby.com/episodes/ruby-on-rails-5-2-0-changes-and-new-features
Better File Uploads with Shrine: Direct Uploads
This is the 6th post in the series of blog posts about Shrine. In this post I explain the rationale behind doing asynchronous client side uploads, and show how to use Uppy to upload files to a simple endpoint, directly to Amazon S3, or even to an endpoint for resumable uploads. Read about it here.
We need add primitives in Ruby for compartmentalization (Ruby feature)
Submitted as a feature in Ruby trunk: https://bugs.ruby-lang.org/issues/14337 Please share!
Do you use many social media providers in your app? You should know one pattern
Simple Factory pattern is about encapsulating object creation and it’s super helpful when you use many social media providers in your app to publish updates on user profile - http://pdabrowski.com/blog/ruby-on-rails/refactoring/simple-factory-pattern/
strings v0.1.0 initial release
The strings is a set of useful functions such as align, pad, truncate, wrap and more for transforming multiline, multibyte strings with ANSI escape codes. Try it out!
ledger-lite 1.0 - hyper ledger book for the distributed blockchain internet era
Hello, I’ve uploaded the version 1.0 of the new ledger-lite library / gem. What’s Ledger Lite? It’s a hyper ledger accounting book for the distributed blockchain internet era; add your transactions one block at a time; transfer crypto(currencie)s and balance the accounts. Happy new year. Prosit 2018! PS: You might also enjoy the new (free online) Programming Cryptocurrencies & Blockchains (in Ruby) book @ Yuki & Moto Press.
simple-admin v0.1.2-alpha released
simple-admin is an efficient and convenient framework for creating admin dashboards in an instant. Is a new way to customize your admin panel, demo.
You need acceptance tests for your app, check why
While unit tests are focused on a low level of interaction, acceptance tests are focused on a high level of interaction. What does it mean? http://pdabrowski.com/blog/ruby-on-rails/testing/acceptance-tests/
Using Kiba ETL & Sidekiq (or Faktory) together
I’ve been using Kiba ETL (Ruby data processing framework) and Sidekiq together in production for a while now, to write flexible data synchronisation jobs. [more inside]
Rails: do you know 4 most important reasons to write code tests?
When I was starting my programming journey I didn’t care about tests. I launched my first startup and it was a maintenance nightmare. Verify if you know the most important reasons for writing code tests - http://pdabrowski.com/blog/ruby-on-rails/testing/4-reasons-why-you-should-test-code/
Awesome Ruby News & Stat(istic)s Page incl. (3x3, Conferences, Best Gems, and More)
Hello, I’ve started a new Awesome News Page @ Planet Ruby that collects ruby news incl. 3x3, 2.6, etc., conferences & camps, libraries, stats & benchmarks and more. How do you get your ruby news? How do you find libraries / gems? Anything missing. Updates welcome. Cheers. Prosit 2018!
Rails belongs_to association - refactor queries like you never did before
Since belongs_to relation is one of the most common association in each Rails application I bet that you deal with it many times in your application. I will show you how to refactor your queries and make them reusable - http://pdabrowski.com/blog/ruby-on-rails/rails-belongs-to-association-refactoring/
Shoes Is Alive
Do you remember Shoes? It is a simple cross platform GUI for Ruby created by the mythical _why_the_lucky_stiff. Did you know it is still maintained? Shoes 3.3.4 runs on Windows, OSX, and Linux plus a few more variations like Raspberry Pi and FreeBSD. There are new widgets and features among the bug fixes. There is also a jRuby reimplementation of the original Shoes known as Shoes4. Start your exploration here and join the community on Facebook and Github.
simple-admin v0.1.1-alpha released
simple-admin is an efficient and convenient framework for creating admin dashboards in an instant. Is a new way to customize your admin panel, demo.
Questions to ask a freelance Rails developer
Qualifying freelance developers as a non-technical person can be challenging. These questions can help you make sure you pick the right partner. https://blog.planetargon.com/entries/questions-to-ask-when-hiring-a-freelance-rails-developer
Privacy and Exposure, Gatekeepers and Privileged Consumers
Exploring the boundaries of encapsulation using protected methods and refinements: https://sonnym.github.io/2018/01/03/privacy-and-exposure-gatekeeprs-and-privileged-consumers/
Deploying to AWS: Dockerizing a Rails app [VIDEO]
What’s the 2018 approach to deploying a Rails app to AWS? We’ll be covering how to Dockerize a Rails app, AWS Fargate, logging, monitoring, and CDN support. [more inside]
Hacklines - The Google of all things Ruby
Discover the latest Ruby & Rails articles, tutorials, libraries, and code snippets from around the web to keep your programming skills sharp: https://hacklines.com
The essence of queries encapsulation in a Rails model
Check what is the proper way of encapsulating queries in a Rails model - http://pdabrowski.com/blog/ruby-on-rails/encapsulating-queries-in-a-rails-model/