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.
Introducing the Passenger Status Service for Heroku
The newly launched Passenger Status Service makes Passenger status reports (the passenger-status tool) work on Heroku. Read the announcement here.
Recursion in Ruby
Exploring different ways to solve problems recursively in Ruby: Sum, Map, Factorials, Fibonacci, Reduce, comparing iterative solutions to their recursive counterparts.
With so much Rails to learn, where do you start?
Have you seen the Rails Competency Chart? It’s frightening how much you have to know, but it’s accurate. If anything, it’s missing things. So how do you learn everything you need without having started 5 years ago?
The Secret Life of Your Database, Part 2: Join Tables
When it comes to databases, there’s two schools of thought: those who hate them, and those who love them. Databases can be complicated, especially when you try to query for data from different tables! This blog post explores the secret life of your database using join tables, and includes some cool SQL queries and diagrams to boot!
How to Use Capistrano to Deploy a Rails Application to a Puma Server
Setting up Capistrano to deploy your Rails app for the first time is usually challenging. This article walks you through the process of setting up Capistrano to deploy to a Puma web server. Puma is currently the recommended Ruby web server on Heroku.
Rails service oriented architecture alternative with components
When a Ruby on Rails application grows over the years it either rots in to a big ball of mud or it gets dissected in to services. What if there was another option? http://teotti.com/rails-service-oriented-architecture-alternative-with-components/
Boldly refactoring complex code
Tomas Varneckas wrote a short blog post on how we refactor critical code paths at Vinted using scientist Ruby library by GitHub.
New kid on the block: Spina CMS
In the last couple of years we’ve developed a new Rails-based CMS we like to call Spina. We use it for most of our clients. We’ve open sourced it and are hoping some people will like it as well. We’re new to maintaining an open source project and would very much appreciate any feedback. [more inside]
Continuous deployment with Capistrano
Setting up continuous deployment with your own Capistrano setup might seem difficult. This blog post shows how you can automatically deploy your Rails apps using Capistrano and Codeship.
Why I loved the 2015 Railsconf Keynote
This year Rails 5 will be released and the Railsconf keynote held by DHH presents the rationale behind its latest developments. In the following I’ll show you why I think we are riding the good Rails and how to apply the right amount of criticism around the Rails’ author point of view. [more inside]
Torba: Bundler for Rails asset pipeline/Sprockets
Torba is a Bower-less asset manager for Sprockets. It makes a local copy of a JS/CSS library and puts it under Sprockets’ load path.
How to set up and run Jekyll on cloud based coding platforms
Jekyll comes with a built in webserver to preview your blog before pushing it live. By default, it serves up at localhost. This is of course tricky if you are running Jekyll on a cloud based coding platform because localhost is the loopback address and by default, unavailable over the internet. How then do you preview your blog? Find out!
Idiosyncratic Ruby: Episode 21-24
Four short articles in the last four days: URI.regexp, No Garbage in Ruby, Ruby Alternatives, and goto fail;
On Rails 5, Presenters And Form Objects.
What is a presenter, what is a view model, and why is a form object more than a validator? I am as confused as you are but here’s some answers.
FiniteMachine 0.10.1 out!
Added ability to inherit state machine definitions to finite_machine.
Introducing Melodiest
Introduction about Melodiest, a Sinatra application boilerplate generator http://www.railsmine.net/2015/05/introducing-melodiest.html
Working with files and folders
Learn how to read & write files in Ruby. Fresh tutorial from blackbytes.info http://www.blackbytes.info/2015/05/working-with-files/
Upload video files with progress bar using Rails, Paperclip and Javascript
Rails does not help much when dealing with AJAX uploads by means of external JS libraries. I recently came across a case where a developer was struggling to use JS to upload a video to a Rails backend. The main reason to use JS was to have a progress bar, something that is missing in the Rails world. In this blog post I’ll show you how to implement the functionality in the simplest case possible. [more inside]
Porting ActiveRecord "counter cache" behavior to Postgres
Automatically increment and decrement a “counter cache” in Postgres using functions and triggers!
ANN Lotus v0.3.2
Automatic secure cookies, action file send and routing helpers, optional contents for views, Lotus.root and bug fixes. http://bit.ly/1AjNK30
Apache Spark Wrapper
A gem which allows distributed computing in Ruby using Apache Spark. [more inside]
Porting ActiveRecord "soft delete" behavior to Postgres
You’ve probably used libraries like paranoia or acts_as_paranoid before. Check out how to implement this behavior in Postgres using functions, triggers, and views!
Build a Realtime Chat App with Ruby and Volt (screencast)
This week’s screencast takes a round trip through the Volt framework by building a realtime chat app in under 10 minutes.