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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
First part out for how to decorate methods in Ruby, redefining methods by name and using prefix methods.
Including support for Rails 6.0 among other things https://rubygems.org/gems/exception_notification/versions/4.4.0
Hello, let’s try out half a dozen ways to unaccent a text string?
What’s the fastest way to turn
AÄÁaäá EÉeé IÍiíï NÑnñ OÖÓoöó Ssß UÜÚuüú into
AAAaaa EEee IIiii NNnn OOOooo Ssss UUUuuu? Let’s benchmark and the winner is… Spoiler:
gsub . Can you find a faster way? Show us. Happy data (and text) wrangling with ruby. Cheers. Prost.
In this article, we’re going to explore the following topics:
Hello, I’ve put together a new fifa gem / library that includes all the world’s football countries and codes (incl. non-member countries and irregular codes). Use
Fifa.countries to get a list of all countries or
Fifa['ENG'] to lookup the record for England, for example.
Happy data wrangling with ruby. Enjoy the beautiful game. Cheers. Prost.
This article will introduce you to the pub/sub pattern, and show you how to improve your Rails controllers by implementing it using the whisper gem [more inside]
My side project Slack app Abot has recently reached a milestone of $10,000 total profit. In this blog post, I describe how the project has changed during the last year and what I am doing to grow and promote it. I also share some details about the usage stats and profit. [more inside]
Hello, I’ve updated the kittyverse gem / library that includes all CryptoKitties traits (e.g. fur, eye shape, pattern, …) and all fancy / exclusive / special editions cats (with time windows, limits, recipes and much more. Happy data wrangling with ruby. Cheers. Prost. PS: For a list of all fancy cats see the auto-generated Fancy / Exclusive / Special Edition Cats - Timeline page, for example.
Jason and Chris talk with David Heinemeier Hansson. David shares how we got started in programming, how he found Ruby and subsequently created Ruby on Rails, his love for Ruby, how he approaches the topic of “Rails is dead,” and much more.
You have an array with duplicates, but you want only unique elements. What can you do? Use the “Array#uniq” method. Did you know that this method takes a block? Learn more here: https://www.rubyguides.com/2019/08/ruby-uniq-method/