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 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]
TDD Basics for Beginners
Step by step tutorials on TDD
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:
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. 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
Top 6 Ruby Links for June 10, 2015
Top 6 Ruby Links for June 10, 2015
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
Agile Web Development With RailsBricks 3 and Rubyonrails.link
Get started with Rails Bricks http://www.matthewreichardt.com/ruby-on-rails-agile-web-development-with-gems/ and with http://www.rubyonrails.link community
Default values in Hash
A quick introduction that explains what “default value” options are available on Hash and when to use them!
The problem with dependency injection
I’ve written up a blog post about the way how I deal with the construction of the dependencies
You've got the Rails basics. So why do you feel so slow?
You’re confident about the core ideas behind Rails. You can write working code, no problem. But now that you care about testing, maintainability, and design, it fels like it takes you way more time to ship anything! Why do you feel so slow? And how can you ship quality code, faster?
Working Effectively with Data Factories Using FactoryGirl
Exploring patterns that can help you use factories more effectively with examples based on Ruby’s FactoryGirl.
How To Create A Gem For Javascript And CSS Libraries
Ever used an obscure frontend library that doesn’t have a gem but wish it did? Here’s how to create a gem for a Javascript or CSS library.