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.
The 11-minute guide to building an online store with Rails and Stripe Checkout
Learn to build and launch a real online store in this 11-minute video tutorial. We will build a simple store which accepts payments through Stripe checkout.js and deploy it to Heroku.
Crowd funding for I Love Ruby has been launched
Crowd funding for 2018 for I Love Ruby (a free programming book) has been launched. To know more visit https://mindaslab.github.io/I-Love-Ruby/
kramdown 1.15.0 released
This is a bug fix release but also drops compatibility with Ruby versions < 2.0. See https://kramdown.gettalong.org/news.html for details.
Transferring your color theme between Sublime and Atom
Davinci is a gem that ports color themes between different text editors. Did you modify your Monokai and you’re too lazy to figure out how to make the same changes in Atom? Just use davinci! https://github.com/mattcheah/davinci [more inside]
Docker images to get started with APIQ CMS
Recently I spent some time on preparing Docker images containing boilerplate Ruby on Rails 5.1 apps packaged with APIQ as dependency… Continue reading
London Ruby Unconference 2017 on Oct 07
If you are in London, and love Ruby, come join us in this year’s edition! An ‘unconference’ is a gathering which aims to provide an open and creative conversation on a series of topics. It is unlike a normal conference in that there is no pre-planned agenda, no central organisation, no fixed speakers, and no eye-watering price tag! Details and Tickets here.
A Puzzle About Ruby Constants
While doing some refactoring, I stumbled on a case where Ruby constants didn’t behave as I expected. To figure out what was going on, I ended up drilling down into YARV instructions. It turns out that Ruby constant resolution is actually very complex! BLOG POST HERE
How I wrote a big and nasty query and how I started simplifying it
A blog post about a time I wrote a query with chained ruby methods weighing in at 41 lines and 2844 characters and how I started to clean it up.
Calling Python from Ruby
Pycall reached it’s 1.0 milestone! Now we have a stable library for reusing the whole Python ecosystem in Ruby. [more inside]
Why Bloggers Are Opting For Mobile App Development In Sydney
Frustrated with responding to thousands of fans from all the social media platforms? Looking for an innovative way of connecting with your audience? Are you still relying on your blog (website), Facebook, Twitter or Instagram for your posts and announcements? [more inside]
Best Resources for Learning Ruby on Rails
15+ Best Resources for Learning Ruby on Rails: http://handypixel.com/15-best-resources-learning-ruby-rails/
General availability of App Service on Linux and Web App for Containers
Microsoft announces that Azure App Service is now generally available on Linux, including its Web App for Containers capability. With this, we now offer built-in image support for ASP.NET Core, Node.js, PHP and Ruby on Linux, as well as provide developers an option to bring their own Docker formatted container images supporting Java, Python, Go and more. [more inside]
Quick Access to Your Production Rails Console
A simple, fast way to get to your production rails console! https://medium.com/masterpoint/quick-access-to-your-production-rails-console-d514336b761f
Rubygems Monthly - Sept 2017 with Spree, Puma, Sequel, Redis, Bundler, Sprockets and
With the end of the summer break, we resumed our Rubygems Monthly! A bunch of good stuff this month, and interesting things to come too! [more inside]
[TIL] How to override Spree Rails engine routes
Overriding a rails engine routes can be hard to achieve when you want to remove or change existing routes. So we have to find a pretty simple solution: http://www.brice-sanchez.com/til-how-to-override-spree-rails-engine-routes/
Introduction to Concurrency Models with Ruby: Actors, CSP, STM, Guilds
In the blog post, I describe such concurrency models as Actors, Communicating Sequential Processes, Software Transactional Memory and of course Guilds — a new concurrency model which may be implemented in Ruby 3! https://engineering.universe.com/introduction-to-concurrency-models-with-ruby-part-ii-c39c7e612bed
Gemfile's new clothes
Bundler 2.0 will change the filenames of the Gemfile and Gemfile.lock. Let’s look at why that is and what this means for you (and the Ruby ecosystem as a whole).
How to include Rails Associated Model Data in React components
A short post on using jbuilder in Rails to send JSON data to React components. When you start using React with Rails, one of the frustrating problems you quickly run into is trying to access associated model data from your React component. This article shows one way to work around that issue. [more inside]
Karafka (Ruby + Kafka) framework 1.0.0 Release Notes
It’s been over a year, since the last major Karafka framework release (0.5). During that time, we’ve managed to implement plenty of new features and fix multiple bugs. Here are the release notes presenting the new and shiny Karafka framework 1.0.0 version. [more inside]
BABL: A Functional API Templating Language
Initially inspired from RABL, this gem implements an elegant but powerful Ruby DSL for describing transformations from your models into JSON, in your APIs. Thanks to its compilation step, it has some advantages over today’s alternatives (RABL, Jbuilder,…), such as fast rendering (zero overhead for partials) and automatic documentation generation (JSON-Schema). [more inside]
Superfast CSV imports using PostgreSQL's COPY
When you need to import data through CSV files there’s more than one gem that can help you do the job. But what if you need to import large CSV files (~100MB / ~1M rows)? [more inside]
Using dry-container to implement Inversion Of Control for Hanami::Events
Hi guys, today we will go through the idea of Inversion Of Control (IoC) by really interesting example: Hanami::Events gem. Before going too deep into details of implementation, I wanted to tell you the story of my last couple weeks. I’ve noticed that Luca Guidi wanted to add Events to version 2 of Hanami. read here
Take care when using `render` in Rails
It has implicit beauty in action controller, but watch out for these common ‘gotchas’: https://schwad.github.io/ruby/rails/controllers/2017/09/05/take-care-when-using-render-in-rails.html
Rails 5: A lot more than ActionCable!
Check out this fantastic blog post about the changes in Rails 5 apart from the major hype around ActionCable :)