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.
Following a Select Statement Through Postgres Internals
Pat Shaughnessy shows how Postgres works internally. Learn what a postgres server does when it receives select statements and how it understands SQL. [more inside]
The difference between acceptance, functional and few other testing types
People often talk about different types of tests, but it seems to be a bit hard to keep track of what each type of tests is supposed to do. Here’s a short guide from a Rails developer’s perspective. http://dabrorius.github.io/2015/06/tested-be-thy-name.html
QueryBundle (Working Spike)
Batch Active Record queries and save trips to your DB. Working and tested, but the API is currently a work in progress: I’d really appreciate feedback. Also, I’ve run into an issue with converting PG::Results to AR objects. Help would be much appreciated!
Strong Like Bull - A Lesson in Recursion
Introduce Strong Parameters into your application the easy way: http://codeandtheology.com/2015/05/21/stronglikebull-a-lesson-in-recursion/
Closures: Elixir vs. Ruby vs. JavaScript
Here’s my take on closures in JavaScript, Ruby and Elixir
How much SQL do you need to know to land a Rails job?
Interviewing for Rails jobs can be really tough. You have to know a lot of different things to be a good rails developer. One of those things is SQL. What SQL questions do you need to prepare for? And how can you learn more SQL?
Using OptionParser in CLI apps (PDF Download)
In this minicourse, you’ll build a complete command-line app that uses the built-in OptionParser library to parse arguments. OptionParser simplifies the processes of taking arguments from users on the command line. [more inside]
CSVImporter: Import real CSVs from real users made easy
Importing CSV files from real users is hard. I decided to build CSV Importer to save us the trouble. CSV Importer provides a DSL to define the mapping between CSV columns and your model, good reporting to the end user and it supports wild encodings and CSV formats. Check it out!
How to Setup Vagrant for Rails
Vagrant is a tool to automatically setup a development environment inside a virtual machine on your computer. Learn more here: http://learn.onemonth.com/how-to-setup-vagrant-for-rails
Rails development with Docker
I successfully configured my environment to have my Rails project run in docker container while keeping my workflow identical. This means my project’s dependency are contained in a docker image instead of being installed on my machine (OS X). [more inside]
Ruby and RMagick for xkcd -- take 2
Clean and pure-Ruby version of small, yet non-trivial image processing task. Also, useful RMagick enchancements proposed: https://github.com/zverok/xkcdize
Rack middleware in pure Ruby
We all know what a rack middleware is and the basic concept behind it. But how do you translate a Rack stack in pure ruby terms ? Quit easily…
active_hash_relation now supports aggregation queries!
Only for APIs: Sometimes we need to ask the database queries that act on the collection but don’t want back an array of elements but a value instead! Like average/max/min/sum of a column of our model. Create a new endpoint just for that? No! Now it can be done with just a simple method in active_hash_relation and then you can append the results to the meta attributes of your serializer. More here!.
How to build a Rails 5 API only and Backbone application
Rails API is now part of Rails 5 https://github.com/rails/rails/pull/19832 !! Here we show how to use it to implement an API backend for a Backbone application http://wyeworks.com/blog/2015/6/11/how-to-build-a-rails-5-api-only-and-backbone-application
How to Build an App Development Team
Your development team—whether in-house, outsourced, or a combination thereof—is crucial to your product’s success. Choosing how to build your team can be difficult. [more inside]
Custom SpreeCommerce Payment Gateways
Spree makes it easy to take payments from any Payment Service Provider. https://www.madetech.com/news/spree-custom-gateway will briefly walk you through the process of creating and using your own custom gateway.
Ruby on Rails freelancing on Fiverr
Hey! Just wrote a post about how I made $2000+ in my spare time with Fiverr using my Ruby and web development skills. If you ever thought about starting to freelance, I think this post would be of great help. Waiting for your questions or suggestions!
Ruby and RMagick do comic
A case of implementing xkcd-like image distortions algorithm with Ruby and RMagick
The Rubyist's Guide to Environment Variables
If you don’t feel 100% comfortable working with environment variables, check out this article I just wrote: http://blog.honeybadger.io/ruby-guide-environment-variables