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.
Shack: if you like it then you should have put a sha on it.
Shack, a small Rack middleware that makes it easy to retrieve the sha of the currently deployed application. It can also show a small banner with the sha in it. No more figuring out what version is deployed.
Rails open source apps deployed
Open’d is deploying number of open-source Rails apps for free, so everybody can use them. (Errbit, Spree, Redmine etc.)
gem-compare: Releasing a new gem version with confidence
What do you usually do when releasing a new version of gems? Running test suite? Something more? I like to use my tool on tracking changes in RubyGems gem-compare as it gives me a little bit more confidence on what am I actually releasing. Here’s how I do it.
Apache Spark 1.4 in RubySpark
Ruby-spark gem now supports the latest version of Spark.
Securing Environment Variables
Just how safe is it to store secrets in environment variables? How can you make it more safe? http://blog.honeybadger.io/securing-environment-variables/
Game Of Life in Rails
my little implementation of Conway’s Game of Life https://github.com/davidesantangelo/gameoflife in Rails. Live at https://golife.herokuapp.com .
Introducing Lotus Form Helpers
New feature for the upcoming v0.4.0: form helpers. HTML5 form generators with automatic values, CSRF protection, method override, infinite nested fields and ORM agnostic. Read more
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. Read more
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.
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:
Closures: Elixir vs. Ruby vs. JavaScript
Here’s my take on closures in JavaScript, Ruby and Elixir
Building REST APIs with Volt (video)
Yes! You can build APIs with Volt!
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. Read more
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). Read more
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!.