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.
kramdown - markdown converter - update - v1.10 - released (now incl. strikethrough)
Hello, Via Vienna.html great news - kramdown v1.10 is out - thanks to Thomas Leitner - the author (from Vienna, Austria ;-) of the markdown converter in ruby. What’s news? [more inside]
Unicode Character Widths
Q: How do you determine how many terminal columns a string will take? A: It is not possible, because it is not standardized for every character! But you can achieve good results with EastAsianWidth.txt, Unicode’s general categories and other data. [more inside]
HOWTO access Amazon DynamoDB with Ruby
HOWTO access Amazon DynamoDB with Ruby. A guide to accessing the Amazon DynamoDB API with v2 of the official AWS SDK for Ruby. Setting up credentials, creating tables, adding items, fetching items, conditional writes, partial updates, scans, queries, secondary indexes, and running DynamoDB locally.
Spreadsheet Architect Gem Released!
Spreadsheet Architect makes it super easy to turn any ActiveRecord relation or plain ruby object array into a XLSX, ODS, or CSV spreadsheets. Generates columns from model ActiveRecord column_names or from a given array of ruby methods. https://github.com/westonganger/spreadsheet_architect
Removing duplicate builds on Travis CI
We made a simple alternative to travis-dedup when we had difficulty setting it up. This helps you stop duplicate builds from running on travis-ci.com. Its extremely simple to set up (3 steps) and we’ve got one of those nifty Deploy to Heroku buttons as well. [more inside]
A Customized Approach to HTTP Proxy Caching in Ruby
AcornCache is a Ruby HTTP proxy caching library that is lightweight, configurable and can be easily integrated with any Rack-based web application. AcornCache allows you to improve page load times and lighten the load on your server by allowing you to implement an in-memory cache shared by every client requesting a resource on your server. Please visit https://github.com/acorncache/acorn-cache for further information.
Turn on Keepalive to Speed Up Rails 4.2.5 App
Why you need to turn the keepalive on to Speed Up Rails 4.2.5 App
Reencryptor Gem Released
Use this gem to migrate from legacy versions of attr_encrypted to a more secure attr_encrypted method. Initial release; more encryption schemes and flexibility to come. Reencryptor Gem Released
Control Groups (cgroups) for the Web?
The web platform lacks primitives that expose control over how and where CPU, GPU, and network resources are allocated. Do we need cgroups for the web?
Five Practices for Robust Ruby on Rails Applications
I’ve shared five simple practices I follow to make my Rails applications robust. It all comes down to failing early, loudly and often.
Migrations are versioned in Rails 5
Migrations are versioned from Rails 5 onwards. [more inside]
How To Automatically Change Port If Default Is In Use With Guard And Rails
This article describes two simple methods to automatically increment the port number if its in use. http://solidfoundationwebdev.com/blog/posts/how-to-automatically-change-port-if-default-is-in-use-with-guard-and-rails
Hyde Press- New Books -Jekyll Plugin Developer's Guide (Generators, Converters, etc.)
Hello, I’ve added a three new volumes to the Hyde Press Bookshelf: 1) Jekyll Installation Guide 2) Jekyll Deployment & Continuous Integration Guide 3) Jekyll Plugin Developer’s Guide Cheers. PS: What’s Jekyll? It’s a free static (web) site builder / generator in Ruby.
Rails 5 improves redirect_to :back with new redirect_back method
Rails 5 improves redirect_to :back with new redirect_back method [more inside]
Ruby Spaceship => Operator
Adhering to the law of trichotomy, the <=> operator (sometimes called the “Spaceship Operator”) works by comparing two elements and returning a -1, 0, or 1. While the original mathematical criteria applies to only real numbers, many programming languages implement the law of trichotomy as a general comparison between equivalent types. Ruby’s <=> operator can be a bit confusing but when understood, is very powerful.
Upgrading from Passenger 4.0.60 to 5.0.25
Upgrading Passenger improved the performance. From 2.4 seconds page load time to 1.7 seconds in Passenger 5.0.50. Learn how to Upgrade from Passenger 4.0.60 to 5.0.25
Clean Up Your Rails Helper File
Latest post from Jordan Maguire over at the TFG blog, cleaning up your rails helper file.
Static Times Q&A with Thomas Leitner - author of the kramdown library and tools
Hello, I’ve started a new Q&A series for the Static Times news channel. Today let’s welcome Thomas Leitner - author of the kramdown library and tools (in ruby) for markdown. See the Q&A #1 w/ Thomas Leitner for the full interview text. Cheers.
Wye Tech News #12
A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
Flash messages with proper model names using Trailblazer operations and Responders
Trailblazer is a thin layer on top of Rails. It gently enforces encapsulation and can be smoothly integrated with other gems and libraries. In this blog post I explain how to integrate it with Responders gem and make both of them work together. Flash messages with proper model names using Trailblazer operations and Responders
How to Make SimpleForm Inputs Disabled By Default In Rails
Ever want a default option applied to all simple_form inputs in a form? Heres how: http://solidfoundationwebdev.com/blog/posts/make-simpleform-inputs-disabled-by-default-in-rails
Basic signup and authentication in your Rails app
Blog post explaining how to implement signup and authentication without any external gems.
How to run Ruby scripts on AWS Lambda using Ansible
Looking to try out AWS Lambda with some Ruby code? If you also happen to be a fan of Ansible, use the Ansible role I created.
A Swift library to talk with ActionCable
If you have an iOS app and want to use the Rails 5’s ActionCable, the ActionCableClient library makes it really easy to do.