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.
Static websites with webgen
The static website generator webgen has been in development for over a decade now. It provides the essential functionalities out of the box and is easy to use, even for non-programmers. Designed to be a general purpose static website generator it can be used for any kind of website, not just blogs. [more inside]
Is it important to write tests when you're coding for yourself?
You have a flash of inspiration for a new program to write. You open your editor to start working on it, and hear a little voice in your head saying, “You know, you really should test your code…”
Ways of Handling PayPal Refunds in Rails
PayPal Checkout includes simple to robust payment solutions to allow merchants and developers to select an integration option most appropriate for their site and their customers. Here’s Some of the Ways of Handling PayPal Refunds in Rails
Ruby Plus Podcast Episode 15
Checkout the latest rubyplus podcast
Tips for Writing Fast Rails: Part 1
Is your Rails application taking forever to respond? Is ActiveRecord being super slow loading a big set of tables? Here are 3 tips for writing fast Rails applications:
Simple way to create public pages
Have you ever heard about public pages in Ruby? And what does it mean? So, it’s generally understood, they are used when there is no need for dynamic info or pulling from the database. As usual Ruby on Rails developers implement some pre-built gems. But I would like to show you another way to create public pages in your rails apps.
Ruby Facets Episode 3: Bundler 1.13, sources, Elm & Rails, webpack, Rails & Capybara
The third episode of Ruby Facets came out yesterday. It covered the recent release of Bundler 1.13, the multiple source vulnerability, adding Elm to Rails, the Asset Pipeline & webpack, and Rails’ upcoming Capybara integration.
Wasting Time TDDing The Wrong Things
Come and take a look at top-down vs bottom-up design, and how it interacts with a TDD.
How to generate & add sitemap to your Rails Application
In case your site has a couple of broken internal links or orphaned pages on it, by mistake, that cannot be visited in any other way, a sitemap can help your visitors reach them as well. However, it is any day better to let these errors not make it to your website in the first place. So, this article is all about how to generate and add a sitemap to your Rails Application.
Ruby on Rails view components with Trailblazer Cells
If you’ve ever wonder how to create reuseable views at rails app check my last blog post: Ruby on Rails view components with Trailblazer Cells. I will show you how you can create easy to maintenance, reusable views at rails app with trailblazer cells gem.
New gem aims to be a simpler all-in-one error solution for your projects
After hacking together multiple gems to get a full error solution comparable to the likes of airbrake and raygun, and not getting anywhere good, I created an open-source gem Errdo that aims to be a simple, quick error tracking, logging, and notifying solution for smaller projects.
Refine Your Ruby Util Objects
For some time now I’ve followed a pattern of using utilities to avoid extending core Ruby objects. While this approach avoids the perils of monkey patching, the experience has always bothered me; it’s not very Ruby-like. Here’s an alternative that uses refinements.
Accidental duplication
Does every similarly looking peace of code should be considered duplication? The answer is here: Accidental duplication.
Apphera Social Media Mining Enterprise version now open source
Please find the updated version of Apphera open source social media monitoring and engagement platform at Over the next days features previously only available in the enterprise version will be available on Github as well.
New Qk/Quik Starter Scaffold - Jekyll Gem-Packed Theme - $ quik new jekyll-theme
Hello, Starting w/ Jekyll v3.3 you can package your themes (layouts, includes, assets) into gems. To show how easy it is to add new scaffolds to quik/qk - the missing code generator / scaffolder for ruby I’ve put together a new scaffold for gem-packaged jekyll themes that mirrors/copies the $ jekyll new-theme command.
Try: $ quik new jekyll-theme to get started.
This will use the jekyll-theme.rb quik starter script and
the quickstart/jekyll-starter-theme template (just a plain git repo). ++ If anyone tries out qk/quik, let us know what you think. ++ PS: You’re invited to add your own scaffolds (gem starters, sinatra starters, jekyll starters, etc.).
MiniTest is not "Just Ruby", it is "Just Rails"
Recently, MiniTest have received decent amount of praising for being “better, less magic” Ruby testing solution than RSpec we all love. In the post, we’ll investigate whether MiniTest is really good Ruby (spoiler: no, it is not), and what is it: Ruby way. Also you can join reddit discussion of the matters.
macOS and macOS Config 1.0.0
With macOS Sierra released, these two projects (written in Bash – no other dependencies) provide a way to setup new machines using macOS Sierra and your development tools loaded and configured: [more inside]
Developing as a developer - a journey through learning
Learning new things can sometimes be difficult and frustrating no matter how motivated you are. I have gathered and wrote down some ideas, thoughts and advices from my journey as a Ruby on Rails learner (but I think that it has a lot of universal truths that can be applied in other topics). I hope that some of you will find useful tips, inspiration or motivation to share their stories:
How to make your Rails Application Multilingual
Most of the world doesn’t speak English. That’s where internationalization and localization come in. Rails has a great i18n API. It provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or for providing multi-language support in our application. Check out Rails gem approach, MySQL approach and a Multilingual Rails structure
Benchmarking Ruby methods
A short look on how to use Ruby’s benchmark module using the example of zero? vs ==
VIM configuration for Ruby and Rails development walktrough
Vim config can be hard for newcomers. This is a walkthrough of my vimrc file that works with Ruby and Rails perfectly
React on Rails
How we implemented react server side rendering with NodeJS and Rails at Reverb
Deploying a rails app with Docker compose
In this article I will assume we have a ruby on rails application that is using a database to store some data, and capistrano for deployment and you want to deploy in on your server but instead of deploying directly on your server you want to dockerize the whole project to give it a separate environment and keep it away from your other applications. [more inside]
Cloudflare & Rails Request.RemoteIP
Simple gem that extends Rails request.remote_ip to default to Cloudflare’s HTTP_CF_CONNECTING_IP header.