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.
Overcoming Primitive Obsession
Ruby primitives are so powerful that we use them everywhere in our code, even when we shouldn’t. https://blog.dnsimple.com/2016/10/overcoming-primitive-obsession/
Are service objects enough?
Recently I tried to find my perfect approach for service objects, how to call them, what to return from them and how to organize them. You can read me thoughts here: http://blog.ragnarson.com/2016/10/19/are-service-objects-enough.html
On requests processing with Puma and Unicorn. Yet another introduction for newcomers.
A post describing basic differences between servers, focusing on multi-process single/multi thread approaches. Can be found here
Smart support of ElasticSearch indexes with Chewy and Capistrano deployment
Capistrano::Chewy gem allows to manage and continuously rebuild (reset) ElasticSearch indexes with Chewy and Capistrano v3 on the remote servers. It adds automatic conditionally reset for only modified Chewy indexes so the developer do not have to build them manually. Moreover, it adds the possibility of manual index management with the base Chewy tasks.
3 rules of a good pull request comment
Briefly: be descriptive, add the “why” part and be polite. For more on this — “The 3 rules”
Snapshot & Backup ElasticSearch documents and indices on GCE.
Ever needed to backup / snapshot Elastic Search Document to Google Compute. If yes, read through the blog to know how https://mewerain.blogspot.in/2016/10/elasticsearch-snapshot-and-backup-onto.html
Debugging Ruby programs on OSX with lldb
Here’s a quick look on how to use lldb, the debugger that ships with XCode, to debug your Ruby programs: https://christoph.luppri.ch/articles/2016/10/17/debugging-ruby-programs-on-osx-with-lldb/
[Screencast] Rails API - Active Model Serializer
Using ActiveModel::Serializer, learn how to create the JSON responses for your Rails API application. ASM is a great object oriented approach to building a JSON API. https://www.driftingruby.com/episodes/rails-api-active-model-serializer
Rack::JetRouter 1.2.0 released -- a very fast routing library
Rack::JetRouter 1.2.0 released. Rack::JetRouter is a very fast routing library for Rack application, derived from Keight.rb framework.
London Ruby Unconference is this weekend!
There are a few last tickets for this event taking place on Saturday, Oct 22, 2016 in Holborn, London, Uk. [more inside]
Postgres and the Rails Sandbox
This post demonstrates how to automatically “heal” an aborted Postgres transaction in a sandboxed Rails console.
Top 33 Jekyll Plugins & Extensions (by GitHub Stars ★) - And the Winner is...
Hello, Still early and rough - I’ve put together a directory for Jekyll plugins & extensions listing the top 33 gems (ranked by GitHub stars ★). And the winner is… Cheers. PS: Add your plugin! How it works? Add a new entry in the Awesome Jekyll Plugins page. Example: [more inside]
On HexaPDF and Releasing Early
After my lightning talk about HexaPDF at Euruko 2016 I was asked why I haven’t released the source code to HexaPDF, yet. I have my reasons and in this post I will shed some light on them.
Creating Machine Learning Systems with JRuby
Ruby is not best-known for addressing machine learning tasks. Yet, it has an excellent reputation for fast prototyping. My latest Sitepoint article Creating Machine Learning Systems with JRuby explains how to prototype machine learning systems with Ruby by classifying BBC sports articles.
How we save money by using DDD and Process Managers in our Rails app
How we save money by using DDD and Process Managers in our Rails app shows how we detect problems with one payment gateway and switch to another one in the moment of crisis.
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
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: http://www.ombulabs.com/blog/performance/rails/writing-fast-rails.html
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. http://blog.active-bridge.com/simple-way-to-create-public-pages
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.
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.