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.
Writing an API gem: choosing the structure and the tools
First article on writing an API gem for GrooveHQ service. Setting an a project and picking up the tools for this gem. Then writing a minial API client implementation: https://mkdev.me/en/posts/writing-an-api-gem-choosing-the-structure-and-the-tools Final gem: https://github.com/Fodoj/groovehq
How to create a gem for working with an API
Intro to article series about creating an API Gem for GrooveHQ service: [more inside]
How to become a Junior Ruby Developer
One guys journey from “I know almost nothing about web-development” up to “I make money on it” in 4 months. [more inside]
Working with binary files in Ruby
I wrote an article about working with binary files. Examples are in Ruby, but there is also some general knowledge there.
the CFP of Ruby Devroom at FOSDEM is open
The Ruby Devroom at FOSDEM is an interpreter and runtime focused developer room for the Ruby programming language. Its goal is to host technical content focused around the Ruby language and the numerous open source projects and initiatives which implement, extend and instrument the Ruby language. [more inside]
Q&A With Piotr Solnica
Chatting with Piotr Solnica about Ruby, Rails, dry-rb, functional programming, and the Ruby community.
Paper trail Gem
Track all the changes in the models data for the purpose of its editing and versioning with Paper trail Gem
Deciding to Build an Isomorphic Ruby App with Opal
There is so much hoopla about JavaScript today and a lot of commotion also around Isomorphic JavaScript Apps. While I really like the concept of being able to do everything in one language and not have to context switch between languages why does it have to be JavaScript? The language simply does not make as happy as coding in Ruby. Opal gives the Rubyist hope. Here’s a story talking about the decision to go with Opal https://blog.gitresolve.com/deciding-to-build-an-isomorphic-ruby-app-with-opal-206befe93c8f#.bp6bra0ef
Ember with Rails Introduction
Check out this Introduction to Ember with Rails screencast series if you aren’t too keen on learning React or Angular 2. Ember is a frontend framework with the same convention over configuration philosophy that Rails uses which makes it a great frontend companion to Ruby on Rails on the backend.
How and why to analyse Nginx log with Logstash, Elasticsearch and Kibana (Ubuntu 16.0
Introduction to Nginx log analysis with Logstash, Elasticsearch and Kibana. What are benefits and how to setup working environment on Ubuntu 16.04: https://goo.gl/T1ks0I
Making broken SJR templates easier to debug
Have you ever spent an embarrassingly large amount of time debugging a broken SJR template? Having been there myself, I’ve isolated 3 different types of errors that are most commonly to blame. Knowing which one is the culprit makes debugging and fixing a js.erb template SO much easier.
http://www.carlosramireziii.com/3-reasons-why-your-sjr-template-isnt-working.html
Running rubocop before git commit
Lately I got annoyed by myself for breaking our Ruby style guide and only noticing after a CI run. Turns out git hooks in combination with pronto are awesome: https://christoph.luppri.ch/articles/2016/11/21/running-rubocop-before-git-commit/
Duck Typing
Engineering our objects with Duck Typing in mind can save us time and effort, and minimize changes to our existing code. Read about Duck Typing
Another useful extension for KMS
This simple extension allows submitting contact/callback/feedback forms from frontend side and having it under “Messages” section in KMS - https://github.com/webgradus/kms_feedback
Importing data to database in Rails 50 times faster than normal
Have you ever needed to save lots of records with unique attribute to database using ActiveRecord? Have you noticed how time consuming such task is? I would like to show you how to do it quickly. http://naturaily.com/blog/post/importing-data-to-database-in-rails-50-times-faster-than-normal
[Screencast] Charts and Graphs
Learn how to use one of three charting libraries, Chart.js, Highcharts, or Google Charts, using the Chartkick gem to create simple and unobtrusive charts in your application. https://www.driftingruby.com/episodes/charts-and-graphs
Passing block with Enumerable#chunk is not mandatory in Ruby 2.4
Enumerable#chunk does not require a block to be passed along with it in Ruby 2.4 [more inside]
Tool to manage Gemfile
gemfile_locker can lock all (or selected) dependencies strictly or semi-strictly (with ~>), so it gets safe to run bundle update anytime. [more inside]
Keeping code DRY and maintainable with bottled_services
Without services in my code, I would be lost, to me just like controllers and models they are an essential part of any rails project, and after looking around and trying various gems I failed to find one that fits my exact needs, so i made one, and wrote a simple introduction blog about it too. ps. this is my first gem, go easy on me ;)
kramdown 1.13.0 - new man page converter, GFM enhancements
The next version of kramdown was just released, with a new converter for creating Unix man pages as well as some enhancements to the GFM parser - see http://kramdown.gettalong.org/news.html.
Ruby Elixir Nodejs Tools Comparison Matrix
Recently, I looked into Elixir and Nodejs and each has its own set of tools that are very similar to the tools I’ve seen in Ruby. It helped me a lot list out a map of the tools. Here it is in case it is helpful for others: https://blog.gitresolve.com/ruby-elixir-nodejs-tools-comparison-matrix-316e278793f9#.6cgmuz1r2
StubServer: Boot a real server for test replies
StubServer can be used for integration tests when stubing does not work or an actual server is needed.
Developed gem make_model_searchable for adding simple search functionality to models
Here’s the link to gem make_model_searchable. This gem provides moduler solution to add search functionality for selected fields. It let’s specify which fields you want to make searchable adding searchable_attributes in model. If no field is specified it searches given query string inside all string fields. It uses ARel nodes for implementing search. To have a look at source code or to contribute please visit github repository for make_model_searchable Support for associations will be added soon. Please review it and give me your valuable feedback and suggestions to my github repo. Thanks.
New invoicing tool made with rails
Hi everybody. The subject of this post may appear an little offtopic and maybe it is. I’ve created an Invoicing tool for freelancers and small companies. The reason I post it here is becasue it’s made with Rails. I’m freelancer too, I’m near the 40’s, I have two kids and I refuse to spent all my life doing this and that for others so I started developing a product by myself. I’ve written this post is because I think that I will have a chance if someone with the same point of view decide to join me in this adventure trying to create something that can be useful for other people that maybe someday will be able to pay our bills. So, please, give it a chance. You can sign in at https://billing.insitu.tools. If after messing a bit around in the website you decide you want to join, please email me to jsperezg at insitu dot tools or at jsperezg at gmail dot com. If you don’t want to join, but you thing it can help you in some way you’re welcome. I’ll be pleased to hear your complains or ideas and I will implement them as soon as possible. In any case, thank you all for your time and patience. PD: I forgot to say that it’s free.