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.
Testing New Frameworks & Languages: How to Separate the Grain from the Chaff
As developers, we’re often over-enthusiastic about the new shit-hot trends in the industry: the newest javascript frameworks, bleeding-edge CI tools, or even new frameworks to use in your side-projects. It’s easy to end up with a clusterfuck of technologies & frameworks scattered in all the projects of a company, so you should develop a skill to continuously assess whether to adopt them in your company or not. [more inside]
The Results from the 2018 Rails Survey Are In!
The 2018 Rails Survey results are now live. You can see how many of your peers are using which versions of Rails, which gems are most beloved and most frustrating, and more. [more inside]
Simple way to use Paperclip with S3 and CloudFront!
A lot of people looks for instruction how to use Paperclip with S3 and CloudFront. In this post you can read about how to do it in very simple way!
Requiring a file or library in Ruby
In this article we’re going to explore the following topics:
How To Make Your Rails App International
https://blog.daftcode.pl/how-to-make-your-rails-app-international-b65404e1c7b6 – Creating an international application basically means displaying the same data in many languages. The beautiful world of ruby gems offers many options for achieving that goal. But which one will be the best choice for your project?
Testing Example Code In Your Jekyll Posts
I’d like my code examples to be as good as the real code that I write. Ideally, all code examples would have tests, which are run before the site is deployed, as part of a CI build process. And so, I created a Jekyll plugin to enable that workflow.
Event Sourcing made Simple
Event Sourcing is to data what Git is to code. We’ve implemented a minimal event sourcing framework at Kickstarter to power d.rip. It’s simple and it has made our life so much better! [more inside]
How To Transform Hash Values & Keys
In this video I explain how to transform the keys & values of a Ruby hash. https://www.youtube.com/watch?v=_a4Hpu590AI
Make Jekyll (4.0) Better, Faster, ...! Yes, you can! »Now is a great time to... «
Hello, building (static) website, books, presentations, radio shows, and more with ruby? Let’s make jekyll 4.0 better, faster, ….! Yes, you can! To quote Olivia Hugger (@dog_awoo), the Jekyll Open Source Project Lead writes: »Now is a great time to finally take on the feature you’ve wanted to see in Jekyll for ages! Just open an issue or experiment with the code to get going!« Source: Jekyll 4.0 is on the Horizon! Happy jekylling with ruby and friends. Cheers. Prost.
Using singleton objects as default arguments in Ruby
Have you ever seen this technique? [more inside]
ApiStruct - API wrapper builder with response serialization
If you use lots of APIs on your project, you need to write lots of logic to standardize work with those APIs. Good news: we’ve created an ApiStruct gem that allows easily create API wrappers for your project. The gem works as a single configuration file and enables you to write not only RESTful actions. https://rubygarage.org/blog/gem-for-api-wrapping
RubyConf 2018 - November 13-15, 2018
Los angeles will be the site of theThe RubyConf 2018 Conference, hosted by the Millennium Biltmore Los Angeles Hotel. [more inside]
Direct & Secure Rails Client-side File Uploads to AWS S3 Buckets
Many Ruby on Rails apps use Amazon AWS S3 buckets for storing assets. When dealing with files uploaded by front-end web or mobile clients there are many factors you should consider to make the whole process secure and performant. In this blog post, I will describe common pitfalls and an optimal solution when it comes to handling client-side file uploads. [more inside]
JSON Web Tokens once again
Here’s a few tips for using JWT in the wild https://medium.com/@yuliaoletskaya/can-jwt-be-used-for-sessions-4164d124fe23
Ruby’s New Infinite Range Syntax: (0..)
Ruby 2.6 will be released with support for a new syntax denoting an endless, infinite range: https://medium.com/square-corner-blog/rubys-new-infinite-range-syntax-0-97777cf06270
Get the profile information from Github, Twitter or Instagram without the API
Have you ever tried to pull the information from the social profile using given URL? Configuring the API access may be a time-consuming and difficult thing to do. On the other hand, scraping a profile may be not as easy as it seems to be. To solve that kind of problems I created the Hawker gem. READ MORE
Two levels deep Service Objects
I personally prefer small classes, short, single purpose methods over the one big piece of code. Having said that I have to admit that this approach has a significant downside - methods are short quite often because internally they call other methods, which call other methods, which call other methods… Let’s look at another approach to writing your Service Objects https://bpohoriletz.github.io/2018/04/20/two-levels-deep-service-objects.html
Working Effectively with Data Factories Using FactoryBot
Learn about patterns that can help you use factories more effectively with examples based on Ruby’s FactoryBot: https://semaphoreci.com/community/tutorials/working-effectively-with-data-factories-using-factorybot
Using Webpacker in Ruby on Rails applications
Walkthrough on using ES6 in Ruby on Rails applications today with Webpacker: with Bootstrap, Turbolinks, fonts, and other images.
Linear regression in Ruby
want to get into machine learning? Follow along in this short post on how to implement linear regression in ruby. Expect some math, a few terminators and most importantly, ruby code: https://medium.com/@oem_83498/linear-regression-in-ruby-a170f9a892e5?source=linkShare-c59519c86fc7-1524163748