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.
Rails 6 adds Array#including, Array#excluding, Enumerable#including, Enumerable#exclu
Rails 6 adds Array#including, Array#excluding, Enumerable#including, Enumerable#excluding as more readable approaches to collection additions and removals. [more inside]
How to Tell Your Ruby Program to Stop Running Early
Sometimes you want to stop your Ruby program early, but how can you do that? And what are the different options available? Find out in this article! https://www.rubyguides.com/2019/03/ruby-exit/
Rails 6 has added Relation#reselect
Rails 6 has added Relation#reselect which allows us to override existing select clause on Relation [more inside]
42.to_user OR [1,2,3].to_companies. Who want's this? :)
https://github.com/igorkasyanchuk/just_for_fun use this gem if you want to use such shortcuts :)
๐๐ฟ๐ผ๐บ ๐ ๐๐ผ ๐ญ
๐๐ฑ๐ฎ๐ฌ๐ด๐ธ๐พ๐ฝ 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]