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 Create Aliases And Functions For IRB & Rails Console
I love my BASH aliases and functions and I wanted to apply the same to my rails console. Here I describe how to do it. http://solidfoundationwebdev.com/posts/how-to-create-aliases-and-functions-for-irb-rails-console
Ruby String Basics Silent Cast : Part 8
Ruby 2.2.3 string basics slice, split and squeeze. Watch it here
RescueGroups.org API Ruby Wrapper
People need companions. We are a social species that enjoys surrounding itself with family and friends. But sometimes, and maybe more often than just sometimes, people crave companionship from something that cannot talk back. This is probably one of the reasons so many people like pets. A pet cannot disagree with you or say judgmental remarks as you fill up that wine glass for a fourth time. No, a good pet will simply exist near you, occasionally asking for pets and food. Over the past few months, as part of the Year of Commits initiative, I have built a wrapper for the RescueGroups.org API.
Let's talk about junior Ruby developer
Is there really a shortage of junior Ruby developer positions? [more inside]
pastel v0.5.0 released
pastel now allows to color multi-line strings and help checking if string has already been colored. Above all, it has brand new shiny logo!
Turning the Tables: How to Get Along with your Object-Relational Mapper
Object-Relational Mappers, like Active Record, can be tricky to work with. They give us convenience, but with significant trade-offs. Here are a few tips on making your relationship with your ORM a healthy one. [more inside]
wpdb_activerecord iss a wrapper for the WordPress database, using ActiveRecord
If you'd like to do it in Ruby instead, then this library might help with some of the boilerplate. [more inside]
Ruby String Basics Silent Cast : Part 7
Ruby 2.2.3 string basics such as scan, scrub and indexing using regex. Watch it here
Rails Gem List
In this year, we go through over 10 rails projects. Rails is a awesome framework design for web development. And the community grows stronger. In the initial stage, we often reconstruct and redesign db schema on our projects, because we found feature related gems in our troubleshooting process. So we just collect those gems we ever found and felt awesome after trying. Hope other rails developers can easily to find useful gems before starting development. This list called “rails-gem-list”. Now this gem have those sections as below: * User * Active Record * Plugins * API * File Upload * Search * Scheduled/Recurrence Jobs * View Helper * Environment Variables * Admin Panel * Logging * Debug * Coding Style * Testing * Production link: https://github.com/hothero/rails-gem-list [more inside]
tty-screen v0.4.0 release
tty-screen gets bug fixes for screen size detection and a new shiny terminal colour detection.
Kill the conditional in Ruby with polymorphism
Quick rundown on refactoring a long conditional in Ruby by introducing objects to handle the logic. [more inside]
A Spectus Tutorial: expectations with RFC 2119 compliance
An introduction to Spectus, followed by some test examples. [more inside]
Using git to get an overview over long periods
Imagine you return to a project after two months of absence. I just did, and I used git to get back up to speed. I explain which commands helped me get the big picture in this post: [more inside]
RSS to API
A Ruby/Sinatra app that provides a JavaScript-friendly API for retrieving RSS feeds. Includes simple caching through Redis to speed requests. One-click deployment to Heroku. A solution for those who were using the Google Feed API, now deprecated. Avoids JavaScript cross-origin issues.
Print & Mail a Postcard in Ruby
Learn to print and mail a customizable postcard in a ruby on rails app. [more inside]
Ruby String Basics Silent Cast : Part 6
Ruby 2.2.3 string basics such as oct, ord, partition, prepend, replace, reverse, rindex, rjust, rpartition and rstrip. Watch it here
Promise Objects in Volt
Volt database queries are asynchronous. That means that they’re quick, but also require special attention under certain circumstances. Epsidode 17
Building a Ruby on Rails App Part 2: Styling the layout
In the first part of our Build a web app with Ruby on Rails series we created a layout view, as well as a header and footer. In the second part we add a paint of style to them.
SmartLogic App Developer Blog Club: End of Summer Technical Post Round-Up
Summer is unofficially over and even if you’re not back in school, you should embrace the season and learn something new. [more inside]
Know Your Sidekiq Testing Rights
Sidekiq is a background job processor for Ruby that’s relied on by thousands of Rails apps. It provides a few options for testing your workers. Learn about them here.
How Do I make Google Analytics Working with Turbolinks 3
An easy way to integrate Google Analytics with Turbolinks 3. http://www.railsmine.net/2015/09/how-do-i-make-google-analytics-working-with-turbolinks-3.html
Happy Ending: An Epic Saga of Guard and Docker
Have you tried running Guard on Docker? It’s not as easy as you might think. Join me as I install Guard and get it working without causing my CPU to explode. [more inside]
Ruby String Basics : Ruby Silent Cast #2
Ruby 2.2.3 String basics that covers force_encoding, bytesize, byteslice, capitalize, casecmp, center, chomp and chop. Watch it here: Ruby 2.2.3 String Basics
Ditching your single page app for…turbolinks?
You tried turbolinks, once, and soon your app began to fail in strange and wonderful ways. But some people make it work. What’s their secret? The answer is so simple, it just might amaze you. - http://blog.honeybadger.io/ditching-your-single-page-app-for-turbolinks/