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.
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]
The Ultimate Guide to Blocks, Procs & Lambdas
What are Ruby blocks and how do they work? What about procs & lambdas? Find all the answers here! http://www.blackbytes.info/2016/02/ruby-procs-and-lambdas/
Translating existing Rails applications made easier
Kamil Dziemianowicz from our team at AmberBit just wrote a post on how he managed to simplify the tedious problem of translating existing Rails application that was not using Rails I18n functionality at all.
Protect Your Web Application with Google reCaptcha on Ruby on Rails
Google reCaptcha is easy to use and comes packed with advanced security features. Using an advanced risk analysis engine, reCaptcha keeps the automated bots from engaging in spamming activities for your application. Besides it is much more user friendly than the earlier image captchas. Read More Here.
Ruby: Bindings Across Inheritance
How to modify local variables from inherited private methods. http://6ftdan.com/allyourdev/2016/02/02/ruby-bindings-across-inheritance/
Is Ruby 2.3 Faster? Date Parsing Performance
Date#parse is 10% faster in Ruby 2.3. But why? Find out in http://ruby-performance-book.com/blog/2016/02/is-ruby-2-3-faster-date-parsing-performance.html.
Emoji Picker for your Rails application.
Rails emoji picker gem was released. Simple integration of emoji picker with your rails application. https://github.com/ID25/rails_emoji_picker
Leveraging Github's Scripts to Rule Them All
A look at using a common set of scripts to standardize your dev and CI environment: http://www.markphelps.me/2016/02/01/scripts-to-rule-them-all.html
Caching, What is it Good For
Achieve application simplicity with zero caching and blazing speed. It isn’t the framework or the content that is holding you back, it’s the language. [more inside]