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.
Building a backend agnostic search query interface for ruby
The engineering team of e-Travel shares somes insights on how they build a backend agnostic search query interface for ruby: http://engineering.pamediakopes.gr/2015/11/06/the-agnostic-query/
New release for migration_data
Now it’s possible to squash old migrations with a rake task easily. Checkout my post about the feature (see update section). And this is the gem for those who are not familiar with it.
Freakonomics CLI
I published a small CLI, wrapped in a gem, that makes it easy to fetch episodes of Freakonomics Radio* via the command line. Check it out here. [more inside]
Spanish ebook on Rails "Aprendiendo Ruby on Rails"
I’m currently writing this eBook as Early Access model. The book is focused on experience working with clients (from consultancy http://michelada.io) on real Ruby on Rails applications. [more inside]
Tips for Contributing Open Source Projects
Hi, I’m Stan. I wrote an article that provides some tips about contributing open source projects. And if you are junior developers like me and wants to make some contribution, this article might help!
Bootstrap Templates Added to Rails Composer
I’ve released Rails Composer with a collection of 23 Bootstrap page templates.. The Rails community contributed to a Kickstarter campaign to make it happen. You are awesome! Enjoy.
Know your ActiveRecord objects
I don’t know if this happens to you, but at times I find it hard to escape the SQL style of building queries with ActiveRecord. In this post I show a couple of examples.
https://github.com/simplabs/rails_api_auth
RailsApiAuth is a lightweight Rails Engine that implements the “Resource Owner Password Credentials Grant” OAuth 2.0 flow as well as Facebook authentication. Find more info on github or in the introductory blog post.
A Ruby Gem for Scalable Offline Sort
At Salsify we needed a way to sort the contents of large files using a predictable amount of memory. This blog post discusses our journey toward better understanding Ruby memory and performance characteristics as we built our offline-sort gem.
How to rotate Rails logs
Logs tend to get huge over time in Rails apps which can lead to “No more space left” type of errors. To avoid this learn How to rotate Rails logs.
Retrieving the last N ordered records with ActiveRecord using subqueries
We recently built a chat, and ran into an interesting issue regarding retrieval of chat messages, with an interesting solution. There’s a blog post about it on the Elabs blog: http://www.elabs.se/blog/72-retrieving-the-last-n-ordered-records-with-activerecord
Holy Hacking, Batman! Create Alfred Workflows in Ruby
Introduces the productivity tool Alfred and describes how to implement workflows in Ruby without using the Alfred libraries.
Heroku - process exited with status 0
Short debugging story about setting up Sidekiq on Heroku and “process exited with status 0” puzzle to solve
Break it Baby, Break It – How the network sniffer "Wireshark" can break Rubygems
Occasionally I get some really weird errors when I try to install gems using gem or bundler. It took me some time to find out the reason for this. Read this article if you’d like to hear the full story.
Ruby 2.2.3 Module Basics : Part 7
Ruby 2.2.3 Module methods such as remove_class_variable, singleton_class, alias_method and using instance_method in combination with define_method is covered in this video
Part 4: Importing book sales from Amazon with Ruby on Rails
Finally the part 4 of How to build a Ruby app series, where we create the Rake tasks to fetch sales ranking data for our Ruby on Rails books from Amazon.
Announcing Rubinius Analyst
Want to know what your app is really doing with no runtime cost? Check out Rubinius Analyst.
Rubocop as a Teaching Tool
I summarized my experience using Rubocop to teach the style guide for a big Ruby project.
Introduction to Verifying Doubles in RSpec
Ever wondered how you can write less brittle unit tests with RSpec? Find out how verifying doubles, introduced in RSpec 3, help you do just that. Introduction to Verifying Doubles in RSpec
Testing Ruby Mixins with Minitest in isolation
Just published a blog post about testing mixins with Minitest in isolation. You can check it out here.
Dynamically compile stylesheets with rails and sass
A small blog post how did I manage to compile css file on the fly for Rails app.
Application Deployment On Heroku
Heroku offers Ruby web developers instant deployment, fast & easy scaling, and vast tool selection. Now we can concentrate on building our applications and forget the tedious deployment and server administration tasks that used to strangle our productivity. We can deploy fast, scale quickly, and adjust to circumstance as needs arise. Read more at RailsCarma Blog.
Rails 4.2.4 and Paper Trail 4.0
Checkout the sample Rails 4.2.4 and Paper Trail 4.0 App
How Ruby Interprets and Runs Your Programs
In this post we’ll follow the journey of a simple program as it’s lexed, parsed and compiled into bytecode. We’ll use the tools that Ruby gives us to spy on the interpreter every step of the way. http://blog.honeybadger.io/how-ruby-interprets-and-runs-your-programs/