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.
Inesita - Develop front-end application in Ruby!
Inesita is a simple, light, Ruby front-end framework.
I Love Ruby - A free ruby book updated
Hello People, Read more
Open Source DataCamp Works Towards Ruby Improvements on Windows
We got a lot of work done along with establishing some big milestones for those using Windows and/or SQL Server with Ruby.
Presenter from Scratch
Railscast ‘Presenter from scratch’ episode code updated to Rails 4.2.4 and Ruby 2.2.3. Here is the code
EuRuKo 2015 Review – conference in a nutshell
Review of EuRuKo 2015 conference from my point of view: EuRuKo 2015 Review – conference in a nutshell
Mapping Data with Representable - Part I
Recently I started a blog geared toward Ruby novices. My first series is a primer on using external APIs as datasources and mapping their data to ActiveRecord with the Representable gem. Part I covers some basic concepts and terminology.
Rails DB - more options, more flexibility
I’d made an important update to gem Read more
Who's an expert Rails developer?
There are lots of resources teaching how to become a Rails developer, build modular Rails apps, and optimize your apps, but very few go beyond that point. One solution is to learn what’s working in other industries and use the knowledge to solve problems for clients.
Sorcery 0.9.1 and Rails 4.2.4
I have updated the Railscast auth app to use Sorcery 0.9.1 and Rails 4.2.4. Here is the repo Sorcery 0.9.1 and Rails 4.2.4
Benchmarking Ruby Refinements
Are refinements slow? I wrote a few benchmarks to find out. The answer was a little surprising. http://blog.honeybadger.io/benchmarking-ruby-refinements/
Draper 2.1 and Rails 4.2.4
I have updated the Railscast profile project to use Draper 2.1 and Rails 4.2.4. Here is the repo : Draper 2.1 in Rails 4.2.4
A list of Ruby gems that have memory leaks
Your Ruby app leaks memory if you see gems mentioned in the list in your Gemfile.lock. This list may save you a week or more of your personal life.
Containerize your Ruby on Rails/PostgreSQL application with RHSCL Docker images
In my latest blog post I look at how to containerize a Ruby on Rails application with one line of code using source-to-image program. I use supported Red Hat’s Docker images, but free CentOS-based ones can be used as well.
What do you think about `private def … end`?
Recently I was told that “too bad Ruby doesn’t support private def … end because it forces us to put related methods far from each other.” Read more
Elasticsearch Part 7: Aggregations (Faceted Search)
In this episode we show you how you can begin implementing aggregates (faceted search) in your application Video
Rails DB version 0.2.1 with new cool features
https://github.com/igorkasyanchuk/rails_db inspect DB without any DB viewer Read more
The not so low cost of calling dynamically defined methods
Ruby is great for metaprogramming, but what about the performance of calling metaprogrammed methods? We expect it to be on par with the equivalent ordinarily defined method but that’s not really the case as highlighted in this post.
Understanding Ruby Refinements and Lexical Scope
If you’ve never used Ruby’s refinements, you might be surprised to learn that they’re lexically scoped. We’ll discuss what this means, and the implications for your code. http://blog.honeybadger.io/understanding-ruby-refinements-and-lexical-scope/
Introducing Tremolo for Tracking Stats to InfluxDB
InfluxDB has been a very useful tool that has mostly replaced StatsD/Graphite in my use case. So, by way of an introduction to Tremolo, I’ve written a little how-to for using ActiveSupport::Notifications to send stats to InfluxDB. Chat with me on Twitter or open any Issues you might find!
Making a custom logger for Rails query optimization
I’ve spent a lot of time tracing problematic queries and figuring out where ActiveRecord chains were called in views. I’ve made a simple logging tool to visualize what is happening through the full MVC stack.
Delay API calls to Twilio with Rails, Active Job and Sidekiq
Performing long running, blocking tasks during the course of a request is a top way to slow down responses for any web application. Things like HTTP requests to 3rd party APIs can tie up processes. We’ll see how to improve the situation using Active Job and Sidekiq to delay API calls and speed up our Rails application.
Solutions for Slugs of All Sizes: acts_as_url + to_param
Rails loves convention over configuration. But sometimes we need to tweak those configurations, like using a slug in our parameters instead of an object’s primary key! Luckily, we don’t need to reinvent the wheel, because this problem has been solved in a variety of ways. This blog post looks at one of those solutions, the acts_as_url library, and how it overrides Rails’ to_param method.
Effective TDD With Ruby: Time & Flow
Do you find Test Driven Development (TDD) good in theory but hard to practice? Do you think it requires too much discipline and you don’t have time? You can improve a lot with some techniques that are simple, effective and easy to apply. [Read more]
Picking the right data structure
If you see code that’s using an Array, could it use a Set instead? If so, is it worth the time and effort to swap them out? I wrote up some notes on picking the right data structure.