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.
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.
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.
Using Custom Web Fonts in Rails 4.2.5 Apps
Learn how to use Custom Web Fonts in Rails 4.2.5 Apps
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:
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.
Experimenting with explicit contracts with Ruby
Three approaches to build contract-based tests with Ruby, using a API testing scenario as an example. [more inside]
Hyde Press- New Free Book -Jekyll Themes 'n' Templates (Starters, Blogs, Books, etc.)
I’ve added a new volume to the Hyde Press Bookshelf titled “Jekyll Themes & Templates” that includes ready-to-fork themes ‘n’ templates for sites with just pages, blogs (w/ posts, feeds, archives, etc.), single-paged sites, books, resumes, etc. Any theme you want to see included? Let us know. Cheers. PS: What’s Jekyll? It’s a free static (web) site builder / generator in Ruby.
5 signs you are ready for that Junior Rails Developer position
You have learned yourself some Ruby on Rails. Perhaps, you’ve also done some just-for-jun projects while learning to practice your skill. At some point, you might be starting to wonder if you are ready for a job as a Rails developer?
Top Tips for Ruby on Rails Beginners
Ruby on Rails has been powering a lot of website these days and why not, it has one of simplest framework to work with. With so much hullabaloo, it is so easy to fall under its spell. If you are among those smitten by Ruby on Rails and interested to pursue it, here are some tips to help you. Read more about Top Tips for Ruby on Rails Beginners
Caching Static and Dynamic Pages in Rails 4.2.5
Learn how to Cache Static and Dynamic Pages in Rails 4.2.5 Apps
Setup Amazon Cloudfront CDN for Rails 4.2 App in 3 Steps
Learn how to Use Amazon Cloudfront CDN with Rails 4.2.5.1 App