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.
Policy Object Adventures
Policy objects are pretty much just like service objects. In fact, from what I understand, policy object is actually a service object. The only difference is that policy objects encapsulate operations that exclusively return boolean values. This is how I first structured policy objects in a Rails app. http://blog.katpadi.ph/policy-object-adventures/
Image Manipulation
In applications related to rails manipulation has to be done while uploading the image as per the requisites of the application like back-ground, color and size, which would give a unique look to the applications. Read full article at RailsCarma’s Blog.
Rails 5 allows setting custom HTTP Headers for assets
Read How Rails 5 allows setting custom HTTP Headers for assets and how it solved some Caching Issues for us on Heroku and Fastly.
Ruby 2.2.3 Module Basics : Part 4
Ruby 2.2.3 Module methods such as const_set, constants, include?, included_modules, instance_method is covered in this video
File Uploads 2015
While the Ruby community wasn’t looking, the rest of the world has moved on to having standalone servers to manage & process their file uploads. [more inside]
Simple Rails Maintenance Mode
Downtimes happen and it pays to be prepared. See how easy it is to get a flexible maintenance page ready to go on your Rails or Rack app with Turnout.
Ruby 2.2.3 Module Basics : Part 3
Ruby 2.2.3 Module basics such as autoload, const_defined? and const_get is covered in this video
factbook.sql World Factbook Country Profiles in SQL (Incl. factbook.db Download)
Hello, I’ve updated the factbook gem, that is, v1.1. What’s news? The script now lets you build an SQL database from the official web pages (country profiles) published by the CIA. To make it easy to get started I’ve added (yet another) new project, that is, /factbook.sql that offers an SQL schema for the World Factbook and includes a pre-built single-file SQLite database, that is, factbook.db for download. Note, using the factbook scripts you can build yourself an up-to-date copy. All code and data public domain. Cheers.
Performance/Load testing with Jmeter/Rails
Performance and load testing with Rails and jmeter from Apache. How to set it up and a min-framework to run your benchmarks easily read more
Mac as IDE
Are you using this editor and that version control app? Think bigger. Instead of jumping between apps or forcing yourself to an IDE use your Mac as a system where apps work together for the greater good. http://firedev.com/posts/2015/mac-as-ide/
Ruby's $_ variable
If you’ve ever used Ruby to process text from the command-line, you’ve used — whether you knew it or not — the $_ variable. Knowing where this global is used can help you write shorter and sweeter one-liners that make processing text a breeze; this article explains how.
RailsDB Standalone & runsql to execute SQL directly from command line
https://github.com/igorkasyanchuk/rails_db [more inside]
Class Hierarchies and Factories in an Object-Oriented language
Ruby is a truly object-oriented language, so our thinking shouldn’t be bound by legacy, class-oriented patterns. This article investigates solutions without complex or inadequate hierarchies and factories, using Modules and Method Injection instead.
attache - Open Source File Upload/Download Microservice
This presentation covers the rationale behind creating an open source microservice for doing file (image) uploads and downloads. Essentially, attache is almost like a self-hosted imgix clone and it is a great replacement for paperclip, carrierwave, dragonfly and even refile. Check out the repo and the demo app.
Rails Response and Assets Compression on Heroku
Shrinking your web response and assets is critical in making your app speedy fast on Heroku. In this blog post, I looked at a few methods to achieve web response and assets compression on Heroku.
Dasherize - CI and GitHub Dashboard for your projects
Dasherize is a beautiful material-based dashboard for your projects which provides you with an overview of open Pull Requests and Issues, and statuses of your CI, all on a single web page. Currently supports GitHub, Travis, CodeShip and CircleCI. Read the blog for some technical details.
deppbot - Automated Dependency Updates
deppbot ensures that your Ruby apps are always up-to-date and saves you time by doing so. Based on your configured schedule, deppbot will run bundle update on your Ruby apps and send the update as a Pull Request to GitHub. You just have to review and merge the informative Pull Request if all’s good and wait for the next one from deppbot. Check out the service or read the blog post to find out more.
Release logs for Redmine 3
Redmine release logs plugin: added support for Redmine 3.x version.
Upcoming Ruby Conferences - November 2015 Edition - Live Version Try $ rubyconf
Hello, For you convenience the upcoming Ruby Conferences as listed with the whatson gem and the included rubyconf command line tool (for a live version try $ rubyconf): [more inside]
Best way to learn Rails & Ruby
Learning something from scratch is almost always an arduous affair – you simply have no idea as to where to start, or not to start, to kick things off. You don’t have to worry about finding the best resources, sorting out the bad ones, and figuring out what to learn next. It’s all here. Just follow it, step by step. https://github.com/sagarmred/rails-learning
Building RSpec with Fix
Some Fix gems in hand, let’s build an RSpec clone that can handle some basic features. And maybe replace the original in your next project, who knows? [more inside]
Ruby 2.2.3 Module Basics : Part 2
Ruby 2.2.3 Module methods such as autoload, autoload?, module_eval, class_exec, class_variable_defined?, class_variable_get, class_variable_set, class_variables and const_defined? is covered in this module basics video
Ruby 2.2.3 Module Basics : Part 1
Ruby 2.2.3 Module methods such as constants, nesting, dynamically adding methods to a module, prepend and ancestors is covered in module basics video
Creating custom Heroku buildpack for Webpack and Ruby on Rails integration
In this blogpost I’d like to show you how to integrate Rails and modern JavaScript tooling together on a popular Heroku platform.