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 Conferences & Camps in 2018 Calendar Update @ Planet Ruby - What's Upcoming?
Hello, I’ve updated the ruby conferences & camps in 2018 calendar. What’s upcoming? October: Sat 6 (1d) Ruby Russia @ Moscow, Russia // Thu+Fri 25+26 (2d) RubyConf Malaysia @ Kuala Lumpur, Malaysia ++ November: Fri 9 (1d) Keep Ruby Weird @ Austin, Texas, United States // Tue-Thu 13-15 (3d) RubyConf @ Los Angeles, California, United States. Any others? Please tell. Cheers. Prost. PS: Did you know? The calendar page (source) is built with … jekyll. PPS: For 2019, see the ruby conferences & camps in 2019 calendar page.
A quick overview of what's a class in Ruby
A 2minutes video about what’s a class in Ruby https://www.youtube.com/watch?v=dL_44Tca-eI&feature=youtu.be
How to Create Paid Order Using Shopify API
This article shows how to create a paid order using Shopify API. The tutorial utilizes the ‘shopify_api’ Ruby gem. https://naturaily.com/blog/paid-order-shopify-api
A wrapper to Nubank's public API
This gem provides a wrapper to Nubank’s public API. [more inside]
How to migrate monolith to the scary new version of Rails
Common techniques and tips for doing painless incremental Rails upgrade https://dev.to/amplifr/how-to-migrate-monolith-to-the-scary-new-version-of-rails-3o52
Making a Ruby executable
Read about how I build an executable for InvoicePrinter in 10 minutes.
Why the CSV standard library is broken (Part II) - The Wonders of CSV Formats
Hello, I’ve written a follow-up on why the CSV standard library is broken, broken, broken (and how to fix it).
Let’s have a look at the wonders of CSV formats / dialects such as MYSQL CSV export or PostgreSQL CSV or TEXT export. In a nutshell - the standard CSV parser is a (simplistic) kludge
using string.split() and, thus, needs to get replaced with a “real” parser that can handle more “edge” cases and formats. Questions and comments welcome. Cheers. Prost. PS: If want to see other (more) CSV formats / dialects pre-configured and supported “out-of-the-box” in the new csv reader, please tell.
#to_s or #to_str? Explicitly casting vs. implicitly coercing types in Ruby
This week in AppSignal Academy: the difference between explicit casting (with #to_s) and implicit coercing (with #to_str) in Ruby, and the difference between typecasting Leonard Nimoy and Michael Keaton. 🖖🦇 http://blog.appsignal.com/2018/09/25/explicitly-casting-vs-implicitly-coercing-types-in-ruby.html
How TextMaster reduced deployment time by using multi-stages dockerfile
Learn how TextMaster leverage multi-stage dockerfile to drastically reduced deployment time of its Rails applications. More information here https://buff.ly/2xR9QLM
Rails + Sequel + Apitome API Starter KIT
With an example of a resource https://github.com/amolpujari/api
The Singleton module in Ruby - Part II
In this article, we’re going to explore the following topics:
Recursion exercises in Ruby
Hello everyone! If you want to practice with recursion, here is link to post with link to github repo with exercises and answers in ruby: https://medium.com/@kopilov.vlad/recursion-exercises-in-ruby-c5d3189c5a80 [more inside]
Creating a Minimal Sinatra App For Hosting Test Files on Heroku
I have shared my experience building a very minimal Sinatra app to host test files with basic auth in this post.
prawn-markup released!
I am very happy to announce the release of prawn-markup, an extension to the Prawn PDF library to include simple HTML structures into your PDF documents. [more inside]
kramup / kramdown-service v1.0.0 - Live Markdown Editor and HTTP JSON API
Hello, I’ve updated the kramdown-service / kramup library and tool that lets you start your own local live markdown editor browser app and json http api service w/ sinatra v2. Enjoy. Cheers. Prost. PS: Did you know? kramdown can convert markdown to latex instead of “classic” hypertext markup too.
What Options Can Be Passed to the Active Storage #variant Method?
When Rails adds a large new feature like Active Storage, it takes some time before good Internet resources and documentation become available for it. This can be a challenge when learning how to use the variant method for image transformations. Not only does it take a lot of options, but the format of those options isn’t obvious. To make it easier, check out the resources and tips I’ve compiled here: http://www.carlosramireziii.com/what-options-can-be-passed-to-the-active-storage-variant-method.html
Don't talk CRUD
Don’t create another layer of abstraction between you and client https://codecoding.net/ruby/on/rails/2018/09/14/dont-talk-crud.html
Currying in Ruby
I recently learned how to Curry in Ruby and turns out it’s pretty easy to do https://medium.com/@sengming/currying-in-ruby-bea5ba6fae8e
Rails: Active Storage Basics (File Uploading) [Video]
Active Storage is now the preferred way to handle file uploads in rails. Whether you are handling images, documents or even videos Active Storage can help you.