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.
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 :)
Teaching a Neural Network to play a game in Ruby
In this blog post we will walk through how to build an AI that can play a computer game with a Neural Network and Q-Learning using the ruby-fann gem. https://www.practicalai.io/teaching-a-neural-network-to-play-a-game-with-q-learning/
[Screencast] Auditing with Paper Trail
Using the paper_trail gem, track changes to model records for auditing purposes and rollback changes when required. https://www.driftingruby.com/episodes/auditing-with-paper-trail
How to: Multiple root level slugs with FriendlyId
Use FriendlyId’s History to move slugs from their namespace to the root level of your Rails app https://medium.com/@mauddev/root-level-slugs-for-multiple-controllers-with-friendlyid-1a4a7ba03ec1
Improving spec speed in a huge, old Rails app
The story of how we improved our test suite speed by 41% in a huge, 6-year-old Rails project. [more inside]
Tutorial on how to deploy your Rails app with Capistrano
Learn how to deploy your Rails app with Capistrano. https://revs.runtime-revolution.com/deploy-your-rails-app-with-capistrano-5ad5d58e9b07
A gem tells you what financial year is it now, and also the date range of it. Edit Ad
A gem tells you what financial year is it now, and also the date range of it. Edit Add topics [more inside]
tty-progressbar v0.12.0 release with parallel multi bars
The newest release of tty-progressbar provides parallel multi bars rendering. In addition, adds ability for a single progress bar to iterate over enumerable and many more - see changelog. Enjoy!
Change sidebar content for certain Rails controllers
Most (or even all) pages in your Rails application have the same sidebar content, but just one needs to show something different? On your login and registration pages, you don’t want to show the last five books/movies/events, but a marketing text why people should signup for your site? You’re currently using an if/elseif/else statement to switch content based on the controller’s name? I’ll show you how to fix this with the help of Rails’ template inheritance: https://christoph.luppri.ch/articles/2017/09/03/change-sidebar-content-for-certain-rails-controllers/
Rearmed-JS v2.0.0 Released! - Make your JS code relaxing and readable
I just released v2.0.0 of my plugin Rearmed-JS. This library is a collection of helpful methods and monkey patches for Arrays, Objects, Numbers, and Strings in Javascript that will make your code more relaxing and more readable by taking inspiration from Ruby. Works in the browser and NodeJS. See the changelog for more details. https://github.com/westonganger/rearmed-js