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 to Remove a Column with Zero Downtime in Ruby on Rails
For a production Ruby on Rails application, uptime is paramount. Altering the structure of an application’s persistence layer is an operation that competes directly with uptime. Specifically, removing a table column within a relational database causes issues with the ActiveRecord ORM. This particular pain point has been removed as of Ruby on Rails 4.0.0, saving developers a lot of headache and greatly reducing the need for structural change coordination.
Octopress 3 (Jekyll’s Ferrari) Docu Reformatted as a Single-Page B-n-W Book
Hello, As a follow-up idea to the Jekyll Docu (Book Edition). Another idea / experiment: Let’s use the READMEs of all the great plugins and tools for Jekyll in the Octopress 3.0 toolkit and reformat it into a single-page black ‘n’ white book. Still early and a work-in-progess. See the source repo and the auto-generated book page using - of course - “plain” Jekyll w/ GitHub Pages. Let us know what you think. Has anyone migrated to Octopress 3.0 (from 2.0)? Cheers.
tty-prompt v0.4.0 release
The new tty-prompt enhances multi_select and select methods with :enum option which allows selection using numpad. It also adds traditional unix enumerated selection and terminal sliders. Enjoy!
How much overhead is added by New Relic and Scout? Benchmarks!
High instrumentation overhead causes developer pain. We’ve open-sourced our benchmark tests at Scout and have our first round of results. Let us know how your experience compares.
[lesson #1] build less, but better software
Would you like to help your clients accelerate product development and business growth with Ruby APIs and Rails Engines? [more inside]
Finally a nice graph theory library for ruby
https://github.com/dirkholzapfel/abuelo … no more gists or untested graph code.
New Rails apps monitoring tool
Hi, I started building a Rails apps monitoring tool a year ago. It started as a side project for my own needs. I wanted to track performances and errors for both requests and background jobs. Later with the help of a designer friend it gets a pretty nice UI. Then I decided to launch it to see how it goes. So I take this opportunity to share it and I am still looking for feedbacks. Here is the link https://www.rorvswild.com
Free Jekyll Book - Docu Reformatted as a Single Page in Black 'n' White
Hello, The idea is simple: Let’s use the (official) great and fantastic Jekyll documentation and reformat it into a single-page black ‘n’ white book. Still early and a work-in-progess. See the auto-built book page using - of course - “plain” Jekyll w/ GitHub Pages. [more inside]
Display the weather information
Just finished the gem display the weather information. You guys can try at https://github.com/vinhnglx/weer [more inside]
Proper Counter Cache Migrations in Rails
The interweb is currently filled with some poor advice about how to seed a counter cache column via an ActiveRecord migration. This article explains how plain SQL will make your migrations more straightforward and your next deployment run faster.
Ruby on Pains
Have you ever heard about the Rails way? In this article I would like to introduce some pains that I’ve seen and keep seeing in all the Rails projects due to the Rails way.
Using scopes with has_many and belongs_to
When you have a belongs_to or a has_one/has_many (with or without :through) association defined on your model, you will in many situations benefit from defining scopes in your model that reference your association. Check out this article for more, and hope you enjoy!
How To Add Comma's To To Numbers In Ruby
This article describes adding comma’s to large numbers to improve readability. http://solidfoundationwebdev.com/blog/posts/how-to-add-comma-s-to-to-numbers-in-ruby
Spree Commerce 2016 development roadmap
Spree Commerce open source project is back in active development with a new and ambitious development roadmap for 2016 handled by a new Core Team. Public slack channel was also set up for anyone to join and talk about future of Spree. [more inside]
Solidus eCommerce: Taxonomies and Rendering Products (Video)
In this episode we discuss taxonomies, what they are and how they work in solidus. Taxonomies are a great way of grouping products and making them filterable. [more inside]
How To Deploy ActionCable to Production
Learn how to Deploy ActionCable to Production with Passenger in this week’s GoRails screencast!
Recurring events in Ruby
In this post, I introduce Montrose, an easy-to-use library for defining recurring events in Ruby. It uses a simple chaining system for building recurrences, inspired heavily by the design principles of HTTP.rb and recurrence rule definitions available in the alternative Recurrence gem. https://rossta.net/blog/recurring-events-in-ruby.html
Factories: From Simple to Ridiculous
During a recent class with Sandi Metz, we discussed factory methods and the different ways of implementing them. But we didn’t have enough time time to dive in to the options. I told my classmates that I would write something up, so here it is – a guided tour of factories from the simple to the ridiculous!
Understanding 'self' in Ruby
In this post I briefly explore what self is, why we use it, and when it changes. http://perrycarbone.tumblr.com/post/138164496678/understanding-self-in-ruby
How To Locally Save A Bundler Gem With Git Source To /vendor/cache
This article describes locally saving a gem with a git source. http://solidfoundationwebdev.com/blog/posts/how-to-locally-save-a-bundler-gem-with-git-source-to-vendor-cache
How to Add Chat to a Rails App with Twilio IP Messaging
Adding chat to your app is more than just sending and receiving messages. Full-featured chat requires chat-history, typing indicators, read receipts, and to sync across iOS and Android devices. This tutorial uses Twilio’s IP messaging SDKs to add chat to a Rails app in 20 minutes. https://www.twilio.com/blog/2016/02/add-chat-to-a-rails-app-with-twilio-ip-messaging.html
ruby-kafka: A solid Ruby client for Apache Kafka
https://github.com/zendesk/ruby-kafka [more inside]