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.
๐๐ฟ๐ผ๐บ ๐ ๐๐ผ ๐ญ
๐๐ฑ๐ฎ๐ฌ๐ด๐ธ๐พ๐ฝ az, ๐ฒ๐ฝโ๐ผ ๐ช๐ท ๐ช๐๐ฎ๐ผ๐ธ๐ถ๐ฎ โ๐ฏ๐ช๐ท๐ฌ๐ ๐ค๐ท๐ฒ๐ฌ๐ธ๐ญ๐ฎ ๐ฝ๐ฎ๐๐ฝโ ๐ฐ๐ฎ๐ท๐ฎ๐ป๐ช๐ฝ๐ธ๐ป.
Ruby 2.7 adds Enumerable#tally
Ruby 2.7 adds Enumerable#tally which is a simple way to count occurrences of elements in an enumerable. Read more about its usage here: https://blog.saeloun.com/2019/03/03/ruby-2-7-enumerable-tally.html
Multiple Bootstrap4 Themes with Webpacker
Iโve written a short blog post and included a demo application, to illustrate how to implement multiple themes for your Rails app, using Bootstrap and Webpacker. https://anotherengineeringblog.com/multiple-themes-with-webpacker
Creating a multi-site marketplace platform with Ruby on Rails
Hey guys, we want to share our experience of building a multi-site vehicle marketplace with Ruby on Rails. The platform now counts 80+ independent marketplaces! Check our challenges, solutions and insights: https://www.codica.com/blog/multisite-vehicle-marketplace/
A poodle is a dog, but Ruby is not Rails
At the February Amsterdam Ruby meetup Michel Martens (maintainer of the Cuba framework for Ruby) joined us from Paris, to talk about web development and mental models ๐ง And my former boss Hongli Lai (creator Phusion Passenger) set out to tackle ๐๐ปโโ๏ธ Ruby memory bloat: https://medium.com/@floriendrees/a-poodle-is-a-dog-ruby-is-not-rails-83f8d1bb4f0e
[Screencast] What's New in Rails 6
Overview of notable features coming soon in Ruby on Rails 6. https://www.driftingruby.com/episodes/what-s-new-in-rails-6
Rails 6 adds support for timezones to Active Job
Rails 6 adds support for timezones to Active Job https://blog.saeloun.com/2019/03/02/rails-activejob-timezone-support.html
Webpack, Webpacker, and Modules, Oh My! How to Add Javascript to Ruby on Rails
A humorous look (an attempt at least) at explaining the various ways of getting your Javascript into Rails with the new Webpacker gem: Webpack, Webpacker, and Modules, Oh My! How to Add Javascript to Ruby on Rails
Nokogiri Gem Ruby Compatibility
Itโs not easy to figure out which version of nokogiri is compatible with a given Ruby version. I generated the compatibility data using Docker and shell scripts. Check out the results: Nokogiri Gem Ruby Compatibility
Rails 6 adds before? and after? methods to Date, DateTime, Time, and TimeWithZone.
Rails 6 adds before? and after? methods to Date, DateTime, Time, and TimeWithZone. Its now more readable when compare date and times. Read more here: https://blog.saeloun.com/2019/03/01/rails-6-before-and-after-for-date-and-time.html
Remote Ruby with Tim Riley
Tim, a partner at Icelab, dry-rb core team member, and world-renowned speaker (at least in Jasonโs eyes) joins us on Remote Ruby to share how he got started programming with Ruby, the dry-rb project, Hanami 2.0, dry-view, and public speaking. [more inside]
Gracefully integrate Reactjs with Ruby on Rails in SaaS Applications
Hey guys, check out my first blog on React. Give it a read, short article on how you can kickstart Rails applications with React as front-end framework. [more inside]
Ruby Conference Thailand
We are happy to announce that we will have the first Ruby conference in Thailand [more inside]
How to implement Stripe Connect in Rails
How to allow your users to connect a Stripe account in order to accept payments. [more inside]
toggl.com -> gitlab.com time sync utility
Ruby console application called gitloggl, calculates total time youโve currently spent on issue at gitlab and posts time tracks to gitlab with the diff between toggle and gitlab.
Ruby Together is looking for a Head of Growth
Ruby Together helps support a lot of critical Ruby infrastructure and tools (e.g. Bundler and RubyGems) and theyโre looking for a Head of Growth to help engage with the community more both online and at events, meetups, etc.
enums 1.0 library / gem - safe enumeration types for ruby
Hello, Iโve put together a new enums library / gem for safe enumeration types in ruby. Yes, enums are just a set of symbolic keys bound to unique integer numbers. Why not just use symbols :-) or constants? Do we really need a new enum type and (yet another) library? Good point. Let the ruby meta-programming magic work for you :-). Cheers. Prost. PS: The new enums 1.0 library is part of the safe data structures series.
ActionCable vs. AnyCable: which one to choose?
ActionCable vs. AnyCable: which one to choose? In this article, we compared them and analyzed their respective performances ๐ Letโs see the results! [more inside]
Stimulus.js Tutorial: Interactive Deletes with Rails UJS
By wrapping the deletable element in a controller and hooking into the Rails-UJS callbacks, you can make your page feel fast, even while the network request and response occur in the background. This tutorial is an attempt to make Railsโ remote deletion mechanism, which uses UJS, feel more immediate. https://johnbeatty.co/2019/02/27/stimulus-js-tutorial-interactive-deletes-with-rails-ujs/
Rack::Queries
A page in your rack-based application that allows quick execution of pre-built queries. https://github.com/CultureHQ/rack-queries
CryptoZombies Code School - Build Your Own (Decentralized) Game in (Secure) Ruby
Hello, The original CryptoZombies is an interactive (free online) code school that teaches you how to write contracts in Solidity through coding your very own crypto-collectible from scratch step-by-step. If anyone is interested - I try to convert the JavaScript-like contracts and samples to (secure) ruby.
So far Iโve converted the first three curriculum chapters to runnable (secure) ruby code, see
zombies_ch1.rb,
zombies_ch2.rb,
zombies_ch3.rb. If you have any ideas (questions or comments)
on how to convert JavaScript-like Solidity contracts
to ruby let us know. Cheers. Prost.
7 Interesting Ruby Code Examples
Looking for some new Ruby tricks, patterns & methods? I wrote an article for you! https://www.rubyguides.com/2019/02/ruby-code-examples/
Ruby 2.7 adds shorthand operator for Object#method
Ruby 2.7 adds experimental shorthand operator for Object#method. This allows method object access using :, like File.:basename which is similar to File.method(:basename) [more inside]