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.
Rails Tip: Get Controller Name Or Action Name Of Previous Page
How to get the controller name or action name of previous page in Rails.
Problems with typical Rails controllers and before actions
One of the most common practices when writing controllers in Rails is using before_actions to keep them DRY. But what happens when the readability drastically deteriorates after making the code DRY to the max? Is it still worth it? Read more at blog.ragnarson.com
How to create a better Rails development environment with Docker Compose
A guide to quickly setting up a dev environment:
AnyLogin now support Clearance
Added support for Clearance gem. Now you can quickly login as any user. Read more
check_passenger
A gem to monitor Passenger processes with Nagios.
Quick introduction to object oriented programming
Object oriented programming is the basis of today’s frameworks for web development. Nearly every web project uses this development methodology. If you are new to programming, it is very important to have clear the OOP concepts.
The Rails Way of Gracefully Solving Web Development Caveats
My look on web development and some of the caveats that can occur during the implementation process and how Ruby on Rails solves such problems. Read more
Rails mountable engines
Kamil Dziemianowicz, the amazing developer from my team at AmberBit, just posted a blog post about his experiences and practices with working on Rails engines.
Overview of Ruby on Rails
Ruby is a high level programming language from Japan creating a buzz and revolutionizing the tech industry. It was created by Yukihiro Matsumoto better known as Matz in 1995. Read full overview at RailsCarma Blog
Install Ruby using Rbenv
Learn how to install Ruby with Rbenv on Ubuntu.
A preproduction checklist for Rails apps
I wrote up what to check before putting a Rails app into production. Aren’t Brakeman and ongoing pull request reviews enough for security? There’s more to be confident about security.
Easily manage your Rails application mailings with MailyHerald gem
Schedule, send and track various mailing types like user activation emails, onboarding sequences and periodicals. MailyHerald integrates easily, provides both API and a nice Web UI. mailyherald.org
Loops in Ruby - all possible approaches
New to Ruby? Check how loops can boost your productivity and save some time by shortening your code to a few lines.
An Interview with Katrina Owen from exercism.io
Katrina talks about learning new languages and avoiding burnout in industry. Interview.
Migrating rails app from postgresql to sql server
It’s not very often that one has to switch database. Here is what we found.
How to Solve It: Mathematical Approach to Programming
Rails developer writes about his math knowledge and how it lets him write smart, efficient code. Read here
Delayed Job Gem for CSV
‘Delayed Job’ is a ruby gem which can be applied to execute certain tasks in background process in the Rails environment. Scheduling tasks with a timetable against running all of them together, the former is preferred due to conservative usage of resources. Visit RailsCarma Blog to read more.
Ruby 2.2.3 Hash Basics : Part 5
Ruby 2.2.3 Hash methods such as key, has_key?, delete, member?, merge and rassoc is covered in this video
Ruby 2.2.3 Complex Basics
Ruby 2.2.3 Complex methods such as to_c, rationalize, rectangular, polar, +, -, /, *, real, imaginary and more is covered in this video
Multiple Levels of Subnavigation with Jekyll
In this post, we’ll discuss how to separate an HTML document into logical sections based on heading tags. I’ll all also show you a cool trick for rendering arbitrarily-deep subnavigation trees using Liquid templates. - http://blog.honeybadger.io/multiple-levels-of-subnavigation-with-jekyll/
Install Ruby using RVM
Learn how to install Ruby with RVM (Ruby Version Manager) on Ubuntu.
Stop Worrying and Start Being Concerned: ActiveSupport Concerns
ActiveSupport is a pretty massive component within Rails, and it’s responsible for a ton of different functionality, including language extensions and utilities. The ActiveSupport::Concern wrapper is a particularly interesting utility for encapsulating shared logic, which can help keep your models skinny and DRY. This blog post delves into the basics of when, how, and why to use a concern.
Accelerated Rails Downloads with NGINX
Rails has a send_file method that supports the NGINX X-Accel-Redirect header for accelerated downloads, but getting it work is a bit tricky. In this tutorial, I explain how send_file works, the steps involved in configuring NGINX, and how to test it.
Profiling RSpec examples with Stackprof
Finding out why a particular spec is slow might be tricky. Stackprof is a powerful tool to find slow parts in the ruby stack, but we usually use it only in development. Why don’t we use it for RSpec too?