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.
Deploy Your Rails to OpenShift
OpenShift is Red Hat’s Platform-as-a-Service (PaaS) that allows developers to quickly develop, host, and scale applications in a cloud environment, deploying your rails app to openshift is pretty easy.
Decontaminator - Oga-based HTML sanitizer
Altmetric open sourced a Ruby gem for sanitizing HTML inputs, which is based on the excellent Oga XML/HTML parser: https://github.com/altmetric/decontaminator
flexmock revival: flexmock 2.0 has been released !
Flexmock 2.0 has been released. Taking maintainership of a high-profile gem is a new thing for me …
EnumizeMongoid - The enum gem for Mongoid you've been waiting for
We felt that the existing enum gems for Mongoid were not good for us, so we’ve decided to implement our own. It does not do everything for you (no scopes, needs creation of enum type classes) but what it does is easy to use, very flexible, and consistent. Released to public as of today - EnumizeMongoid
Safe enums in Ruby
We’ve created a library which solves enum’s problem in Ruby for our project. The main idea of the library is to have safe enum values everywhere: in object attributes, direct values access and etc. I would appreciate to hear your feedback about it. Thanks!
fedux.org – A "proxy.pac" is your friend if you're a proxy-administrator
You can find quite a few IT infrastructures where an HTTP proxy is used to secure the access to the “World Wide Web” (WWW). In smaller company environments you can configure the proxy for each workstation manually. In larger environments you normally use a so called “proxy.pac” for this. This article gives you an introduction to “proxy.pac”-files.
Ruby Interview Questions : Include vs Extend
What is the difference between include and extend? How to implement extend with include? Watch the video here: Include and Extend
Commands, Services and Logic: An Action-Based Class Design for Non-Trivial Rails Apps
A great talk about class design for cleaner Rails [more inside]
awesome-rails-gem
A collection of awesome Ruby Gems for Rails development. [more inside]
3 steps to fix encoding problems in Ruby
You only really think about a string’s encoding when it breaks. When you check your exception tracker and see Encoding::InvalidByteSequenceError: "\xFE" on UTF-8
staring you in the face. When you have a bad encoding, how do you figure out what broke? And how can you fix it?
StackProf: The Holy Grail of Rails Application Profiling
Profiling Rails Applications in the past has been tricky, and running a profiler in Production has been a pipe dream - until StackProf. In StackProf: The Holy Grail of Rails Application Profiling, I walk thru the basic steps of setting up StackProf, interpreting the results and how to peer thru some of the noise StackProf generates.
What exactly are transactional emails?
In the first lesson of Sending Transactional Emails From Rails, we clarify the definition of transactional emails and why they are important to software/ecommerce businesses.
Cleaning up a feature spec
Writing fully integrated tests can be a point of contention testing, especially when it comes to writing Capybara test that need to wait JavaScript to load items. [more inside]
13 software design articles for 13 weeks of practice
A friend had asked me for recommendations for Practicing Ruby articles related to software design, so here is a big list of them. Enjoy!
5 Best Ruby on Rails Content Management Systems (CMS)
Content Management System or CMS is a tool to create, edit, and store content in a convenient way enabling even non-technical user to add new information, products and services with speed and ease. Read our article : 5 Best Ruby on Rails Content Management Systems
Rails Interactor Pattern - Part 1
The other day I was working on a Rails application that did some communication with the Mailgun API. I soon discovered that I wanted to have not only the hard work of calling the API done in my interactor pattern, but also make the decision if the call was successful or not. Read on here
date_period_parser
date_period_parser gem parses period string parameters like "2014-Q3", "ytd", "current-month" and returns start/end DateTime objects. Useful for filtering records in reports or search results.
Ruby 2.2.3 String Basics : Ruby Silent Cast Part 9
Ruby 2.2.3 string basics start_with?, strip and sub. Watch it here
N-gram Analysis for Fun and Profit
Break text into ngrams to find patterns & use with NLP algorithms http://www.blackbytes.info/2015/09/ngram-analysis-ruby/
All looking rather Dashing
We love metrics, especially metrics that let us know how our applications are doing, so we recently spent a day experimenting with various dashboard solutions, until we found that Dashing was exactly what we were looking for: https://www.madetech.com/blog/all-looking-rather-dashing
Migrating Redis Data
Sometimes migrating data from between Redis instances is necessary, but not all of the tools are available. Review your options and their trade-offs: http://sorentwo.com/2015/09/15/migrating-redis-data.html
Working Hard or Hardly Working, Part 1: Active Job
Background jobs can be hard to tackle when you’ve never written one before. A good introduction to asynchronous processes is Rails 4.2’s Active Job, which easily integrates with Action Mailer. This blog post explains the basics of inline vs. asynchronous processes, and walks thorough integrating a mailer into a background process.
rsssf gem - Tools & Scripts for the World's Largest Football (Soccer) Data Archive
Hello, I’ve put together a new rsssf library that that lets you work with rsssf archive pages. What’s the RSSSF? RSSSF stands for Rec.Sport.Soccer Statistics Foundation and collects football (soccer) league tables, match results and more from all over the world online in plain text for over fifteen years. Today the rsss archive is the world’s largest football (soccer) data archive. (Note: I’m not associated with the RSSSF). Anyways, ever tried getting any of the plain text archive pages into an SQL database (with tables such as leagues, teams, matches, etc.)? The new rsssf scripts and repos get you started. Cheers.
Actor Action Object
Learn how procedural code can be used in conjunction with object-oriented paradigm in your Rails projects Actor Action Object in Rails Projects
Object-oriented controversies: Tell Don't Ask vs the Web
A little brain dump of questions and thoughts about object-oriented principles and best-practices that have bugged me and kept me awake at night. [more inside]