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.
A Deep Dive into Ruby Scopes
Daniel P. Clark gives an overview on Ruby Scopes. Article here.
Is your Rails app ready for Production?
Many projects need just small touches before hitting production. Check to see if you’re ok with this small guide. This is targeted to beginners but I’ve seen even experienced developers miss some of those points.
better_errors than web-console
Oh, opinions. After working on the Ruby Heroes site lately I realized that I just couldn’t get the kind of debugging I’m used to with better_errors in web-console, so I made a quick little screencast to demonstrate why I think better_errors is so much better. [more inside]
Rails: Has One Through Polymorphic Relation
In wanting to do the inverse of a standard polymorphic belongs_to relationship, I found that it could be done in a has_one through scenario. Code with light commentary [here]
Essential Ruby Kindle Book
Now available on the Amazon Kindle store. Check out Essential Ruby
Vote for your 2016 Ruby Heroes
Take a moment to say nice things about the people who made the Ruby community a better place this year. Please cast your votes at rubyheroes.com and spread the word to Rubyists around the world.
How to upgrade to Rails 5
We’re now running Rails 5 @dockbit and I’ve shared our experience with the upgrade here: https://medium.com/@tair/how-to-upgrade-to-rails-5-657b3bfd83
Auto Backup Database in Rails Application
In this post, I’ll show you 5 basic steps to auto backup database in your Rails app by using ‘backup’ and ‘whenever’ gems. Read more: http://goo.gl/iomK5u
Setting up an S3 bucket for your assets/uploads
Because S3 is awesome, but the policies are awful: https://buildtoship.com/setting-up-an-s3-bucket-for-your-asssets/
Mastering Concurrency in Ruby
There are multiple ways to handle concurrency: multi-process, multi-threading and event-driven. Each of these have their uses, pros and cons. In this article, you’ll learn how they differ and when to use which.
Handling bounces, FBLs and List-Unsubscribes
An intro on handling email complaints with your email delivery infrastructure.
Removing a particular middleware from Sinatra based Ruby application
A quick how to on removing a particular middleware from Sinatra app rack stack: Removing a particular middleware from Sinatra based Ruby application
How to Evaluate a Rails Project in 10 Simple Steps
It will come a time when you will have to decide whether to maintain a Rails project or not. [more inside]
RubyFlow Contributor Conduct
It’s rare for a RubyFlow contributor to deliberately violate our unwritten conventions and make others feel unwelcome, but it’s time to start formalizing what those conventions are and be transparent that we do things to keep the site as clean and welcoming to as many people as possible :-) [more inside]
Learn how to answer questions by browsing Rails source code
We will use a concrete example by looking at How To Get A List Of All Currently Registered MIME Types With Rails
Torba gem managing frontend dependencies
Torba is a Ruby gem that I discovered recently. It allows you to easily define your frontend assets in a rails project. Sick of all those JS package managers, asset gems and bower/bower-rails? Try Torba!
Refactoring of CreateSend: part 1
I wrote a post where I refactor a class from an open-source Ruby library. On the first glance, the code looked good, but as I dived in, I found lots of stuff to improve. http://rubyclarity.com/2016/03/createsend-refactoring-part-1/
Virtual Attributes in Rails 5
The sixteenth episode of Railscast is now updated to Rails 5 as a blog post. Learn all about Virtual Attributes in Rails 5
Flipflop, improved feature toggles
Flipflop lets you declare and manage feature flags in your Rails application. An improved version of Flip.
Rails 5 ActiveRecord where, find_by, or, not and Eager Loading
The fifteenth episode of Railscast is now updated to Rails 5 as a blog post. Learn all about Rails 5 ActiveRecord where, find_by, or, not and Eager Loading
Parallel processing in Rails
During my last work on commercial project I came up with idea to create ThreadsPad gem for parallel processing. For instance, you have a huge csv file with hundred lines and you need to parse it. To make it faster you can devide parsing process into a few workers…. Here is more details about it
Trending Ruby Repos in Asia
See http://trending.rubyasia.com. Explore Ruby Repositories with at least 20 stars in Asia. Open Sourced under https://github.com/jollygoodcode/data.rubyasia.com.
qcloud-cos-sdk published
I just publish qcloud-cos-sdk, a Ruby SDK for qcloud cos. If you use qcloud cos in your Ruby project. I think it will help you. learn more https://github.com/zlx/qcloud-cos-sdk
Performing Calculations on Models in Rails 5
The fourteenth episode of Railscast is now updated to Rails 5 as a blog post. Learn about Performing Calculations on Models in Rails 5.