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.
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. https://www.youtube.com/watch?v=Ut3LHdQ1hEE
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? http://blog.iempire.ru/2015/10/13/profiling-specs/
How to Install Bootstrap 4 in Rails
Every day there’s a new library in the spotlight or maybe just a new version of a really popular one like Bootstrap in this case that doesn’t always have a corresponding ruby gem that you can install into your app yet. So what do you do? Do you sit and wait until someone decides to write one for you? Learn how to Install Bootstrap 4 right now
Debugging a Memory Leak on Heroku
Richard Schneeman explains how to debug a memory leak on Heroku.
Building a Simple Web Server with Ruby 2.0+
The Ruby language can be utilized for a variety of different purposes. The most popular of these is as a web scripting language. The entry point to these applications, the web server, is not something that is usually built from the ground up. However, a basic web server can be easily written to satisfy some very simple requests.
Fixing SQL Injection
Ever wondered how hackers can exploit SQL Injection? Find out how SQL Injection happens and how to fix it in your Ruby apps.
Ruby 2.2.3 Enumerator Basics : Part 4
Ruby 2.2.3 Enumerator methods such as yield, feed, next_values, peek and peek_values is covered in this video
Preview of SQL Support + "Magic Migrations" in Volt (Video)
Volt is getting very close to releasing it’s first version that supports SQL and “magic” migrations that write themselves. Check it out here
Automatically generate subnavigation from H2s in Jekyll
Longer pages often benefit from subnavigation. In this post, we’ll make a Jekyll plugin to dynamically generate subnavigation from H2 tags. - http://blog.honeybadger.io/automatically-generating-subnavigation-from-headings-in-jekyll/
Elasticsearch Part 6: Async Callbacks
In this episode we show you how to implement a custom callback for keeping your elasticsearch data-store in sync with your main database. Video
Ruby/Rails - Bechmark your Methods
Hello, please check https://github.com/igorkasyanchuk/benchmark_methods Now you can quickly measure and benchmark your ruby methods without an additional code changes. Put a star if you like it ;)
Accelerated Mobile Pages (AMP) with Ruby on Rails
This screencast shows how to create basic (AMP)[https://www.ampproject.org] pages with Ruby on Rails. http://www.amooma.de/screencasts/2015-10-12-accelerated-mobile_pages_with_rails/
The Basics of Creating Rails Plugins
The first step before you can create plugin is to understand whether your plugin is specific to just the application you are working on or whether it could be used across applications. Visit our blog to read full article!
Ruby 2.2.3 Enumerator Basics : Part 3
Ruby 2.2.3 Enumerator methods such as with_object and feed is covered in this video
finite_machine v0.11.0 release
This major release is an internal rewrite of the finite_machine and paired with bug fixes makes it’s 2x fast and with addition of new website and logo makes it 2x as awesome. Give it a try!
Wrap your methods with DB Transactions easily
Please check https://github.com/igorkasyanchuk/transactify [more inside]