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.
This article discusses some techniques I’ve used to incorporate the benefits of functional programming into Ruby. Using enumerables and filters as examples, it shows how using callables such as lambdas can massively simplify the support of varying behaviors. [more inside]
Сarrierwave is a popular image upload gem used by the Rails community to upload files to the server. Let’s see how to avoid issues with version inheritance. [more inside]
In this article, we’re going to explore the following topics:
Version 3.1.0 Spreadsheet Architect has now been released. One cool new enhancement added in this version is the
conditional_row_styles option which enables you to create even more dynamic spreadsheets. Check the changelog for more details. https://github.com/westonganger/spreadsheet_architect
Optimizing database queries is arguably one of the fastest ways to improve the performance of the Rails applications. There are multiple ways how you can approach it, depending on the kind of a problem. N+1 queries seem to be a pretty common issue, which is, fortunately, easy to address. However, sometimes you have some relatively simple-looking queries that seem to take way longer than they should be, indicating that they might require some optimization. The best way to improve such queries is adding a proper index. [more inside]
This article is about deployment tools when we deploy Rails app such as Nginx, Passenger and Capistrano. It give you a brief introduction of these tools and the common features of them! https://medium.com/@johnsonzhan/learning-how-to-deploy-rails-bd5f59359a70
In this article, we review all the existing tools in Ruby on Rails that help developers and business owners launch an ecommerce store within short timeframe and with minimum efforts: https://rubygarage.org/blog/launch-online-store-with-ruby-on-rails
In this episode of Ruby Rogues, the panel talks to Sihui Huang about his article “How to Contribute to Ruby”. Sihui is currently a back-end engineer at Gusto, which is a startup that works with payroll, benefits, and HR for companies. They talk about her experience in the programming world, why she chose to work with Ruby, and they touch on her article and why she decided to write it. They also touch on the three focuses for Ruby 3, if she thinks Ruby has a long time future, and more! [more inside]
Hello, I’ve put together a new library / gem, that is, tabreader - that lets you read in tabular datafiles in text in the tab format; yes, uses
values = line.split("/t") or use the packaged up
TabReader.parse_line( ... ) or any of the convenience helpers incl.
TabHashReader.parse for returning hashes (with named value pairs) instead of arrays (with a list of values by position/index). The readme includes why
CSV.read( col_sep: "\t", quote_char: "∅" ) is NOT recommended and why tab is its own (simpler) format than the classic comma-separated values (csv) format. Happy data wrangling with ruby. Cheers. Prost.
Learn how to add a custom search bar in ActiveAdmin https://blog.kiprosh.com/adding-custom-search-bar-to-activeadmin/
Given you are using Ruby 2.5.1 Docker image in Rails project, you may notice that no logs are beeing output to docker stdout (or docker compose stdout) output even when you configure your logger to be
logger = Logger.new(STDOUT). [more inside]
Joining my local Ruby user group was the best career move I ever made. It made me a better dev, got me networking, and even got me work: https://aaronlasseigne.com/2018/08/15/my-best-career-move/
Upgrade to the latest Rails version: https://www.ombulabs.com/blog/rails/upgrades/upgrade-rails-from-5-1-to-5-2.html
Tutorial about integrating Rails application with Adyen payments with service objects. https://www.netguru.co/codestories/a-short-love-story-about-adyen-and-service-objects
So you’ve built and tuned your machine learning model using Keras with TensorFlow backend. Now you want to deploy it to production so it’s available for use within Ruby on Rails. [more inside]
Dropping by to promote Ruby Conference MY 2018 happening on Oct 25 and 26 in Kuala Lumpur, Malaysia. Early bird tickets are only available until end of this month. Grab the tickets before it runs out! Remember to check out our great line up of speakers and buy the ticket! https://rubyconf.my/