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.
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]
You Give Code a Bad Name
In this piece aimed especially at newer programmers and Bon Jovi fans, Guava developer Chico Carvalho discusses some insightful points on the subject of naming stuff. [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:
Guide to Upgrade Rails from 5.1 to 5.2
Upgrade to the latest Rails version:
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.
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!
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)
- 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]
Error Handling in Ruby: Part I
In this article, we’re going to explore the following topics:
Authorization for rails Serializer
Explains the way you can customize your JSON responses based on the person who is viewing the object. [more inside]
Help us to provide translations for Ransack gem!
Hey everyone! The ransack gem ( https://github.com/activerecord-hackery/ransack ), very popular in Ruby community, needs help to provide translations for many locales. Send us a pull request with translations of any locale you know to make Ransack more accessible in different languages! [more inside]
CodeFund has raised over $36,000 for OSS
July 8 marks the 1 year birthday of CodeFund (previously Code Sponsor). In the past year, we’ve raised over $36,000 for Open Source (including ruby related gems/sites). If you have a ruby gem website or blog, we’d love to help you as well! [more inside]
How to Speed Up Your Ruby on Rails App
Let’s see what you can do to optimize the performance of a Ruby on Rails app and speed it up.