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.
How Ruby on Rails Speeds Up the Launch of Your Ecommerce Store
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
[Podcast] Ruby Rogues - How to Contribute to Ruby with Sihui Huang
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]
tabreader - read in tabular datafiles in text in the tab format; incl. why Tab != CSV
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.
Adding Custom Search Bar To ActiveAdmin
Learn how to add a custom search bar in ActiveAdmin https://blog.kiprosh.com/adding-custom-search-bar-to-activeadmin/
Whyday is Sunday! #BeChunky
Learn about Whyday at @celebratewhyday: https://twitter.com/celebratewhyday
Ruby logs and puts not shown in docker container logs
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]
I share a Ruby tip a day
I have gathered ruby tips for a few years. Now I want to give back and I created a twitter account and a newsletter where I share every day a ruby tip, in less than 20 lines, for beginners and experienced developers. [more inside]
My Best Career Move
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/
Guide to Upgrade Rails from 5.1 to 5.2
Upgrade to the latest Rails version: https://www.ombulabs.com/blog/rails/upgrades/upgrade-rails-from-5-1-to-5-2.html
Error Handling in Ruby: Part II
In this article, we’re going to explore the following topics: [more inside]
A Short Love Story about Adyen and Service Objects
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
How to use trained Keras and TensorFlow machine learning models within Ruby on Rails
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]
tty-pie_chart - draw pie charts in your terminal
tty-pie_chart draws a pie chart in your terminal. You can specify each slice color and fill character. Next to the pie chart you can display a legend with a name and percentage value for each data item. Enjoy!
Ruby Conference MY 2018
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/
csvrecord - read in comma-separated values (csv) records with typed structs / schemas
Hello, I’ve put together a new library / gem, that is, csvrecord - that lets you read in comma-separated values (csv) records with typed structs / schemas e.g. use beers = Beer.read( 'beer.csv' ).to_a; beers[0].brewery instead of rows = CSV.read( 'beer.csv', headers: true ); rows[0]['Brewery'] and so on. Why care about CSV? It’s the world’s most popular tabular data interchange format in text :-).
Happy data / text wrangling with ruby. Cheers. Prost.
PS: For some getting started .csv datafiles, see the /football.csv collection
(incl. English Premier League, Bundesliga, Seria A, Ligue 1, European Cup, etc.).
Why you shouldn't run multiple apps on the same server
I’m writing about deploying Rails from a sysadmin perspective, here is why putting everything on the same server is a bad idea: Read more
Ruby 2.6 KeyError#initialize accepts message, receiver, and key as arguments
Learn about KeyError#initialize method which accepts :message, :receiver and :key as options to set message, receiver, and key on the KeyError object. Read more
Proc vs Lambda
lambdas are strict on argument number. If the call doesn’t respect the exact number of arguments then an ArgumentError is raised… SEE MORE
4 steps process to drop a table in production
In this post, we will see a four steps process how to drop a table from production without running into weird issues. [more inside]
Migration from the Wordpress to the own Ruby blogging engine - pros and cons
After 6 months of blogging using the Wordpress engine, I decided to switch to my own Ruby blogging engine that I created from scratch. This decision has many advantages and disadvantages so I want to share my experiences in case you will be wondering in the future what solution for blogging you should use. READ MORE
any_login gem - login as any user in development (or even in prod)
https://github.com/igorkasyanchuk/any_login - login as any user in the system. today I’ve pushed a minor update, mostly with new travis ci config and CSS styles. Please try it. [more inside]
Invalid or incomplete POST parameters
This was an interesting error: [more inside]