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.
Ansible Playbook: Ruby on Rails Server
Ansible is a great tool to automate server setups. I wrote an ansible playbook to setup a complete Ruby on Rails server with nginx, puma, let’s encrypt and everything you need to deploy your Rails App: https://github.com/aleks/ansible-rails
Study notes for the Value Object pattern
Lately I’ve been doing some reasearch on the value object pattern. Here’s a blog post with my findings, some reading material by other authors, and an example: https://christoph.luppri.ch/articles/2016/12/03/study-notes-for-the-value-object-pattern/
Auto-Complete Association in Rails 5
Checkout the Rails screencast latest episode Auto-Complete Association in Rails 5
Better default alert boxes for your Rails applications
In a few seconds using sweet-alert2-rails, you can replace the boring standard JavaScript alert boxes with nice looking and animated ones.
EmailHunter Ruby Wrapper
A tiny ruby wrapper around Email Hunter API. Email Hunter helps sales people reach their targets and increase their sales. [more inside]
All about improving performance by eager loading associations
Please checkout my latest article where I talk about how to improve performance by eliminating N + 1 query problem, and when it can be overkill! [more inside]
Webinspector
Ruby gem to inspect completely a web page. It scrapes a given URL, and returns you its meta, links, images more. [more inside]
A Step-by-Step Guide to Debugging SJR Templates
SJR is a double edged sword in that it’s awesome when it works, but can be a nightmare to debug if it doesn’t. Over time I’ve developed a sort of systematic approach to debugging SJR templates that I use to track down mistakes in the template and stay on SJR’s good side. I shared my technique (along with a cheat sheet PDF) in my latest blog post… http://www.carlosramireziii.com/a-step-by-step-guide-to-debugging-sjr-templates.html
Improving RubyFlow: What Features Do You Want?
Hi folks, we’re going to spend some time soon to improve RubyFlow and have noticed a few common feature requests. The most popular is probably adding a “report” or flagging button so we can take down spam/junk links - so we’ll be getting that rolled out. But what else would you be keen to see? [more inside]
Go Full Stack Rails - The Frontend part 2
This is the follow-up to a series covering the development of a clean, maintainable and well-tested full-stack application with Rails and ES6. In this post, we cover “Promises” in the context of the provided example application. There’s also some discussion around how to improve promise-based tests and tips for running JavaScript specs with code42template. We also have three other posts available: The Backend: part 1, The Backend: part 2, and The Frontend: part 1.
Introduction to data structures and time complexity
I wrote an introductory article about data structures, time complexity and basic algorithms.
How To Create Search Friendly Urls in Rails
How you can utilize slugs to make your URLs more relevant to the page content. Read More From Here->How To Create Search Friendly Urls in Rails
Developing a wizard or multi-steps forms in Rails
This article covers one way of developing a wizard or multi-steps forms linked to session data…
How To Make A DSL, Hygienically
DSLs are one of the cooler parts of Ruby (for some value of “cool”). Come and see how to make one.
tty-prompt 0.8.0 release with custom keybindings
tty-prompt new release gets quite few bug fixes but most importantly allows you to specify custom keybindings to provide ultimate Vim immersion :)
Refactoring Legacy Rails Controllers
The first step against bloated controllers is to get the legacy code under test. The refactoring concepts scale all the way up to the toughest refactors. Article here.
Chain service objects like a boss
How can we keep controllers and models skinny? One of the widely accepted solutions is the use of Service Objects. In this blog post I show how I structure and chain them to improve the flow of the application and refactor the model layer.
Avatar - Jekyll Plugin - Add Profile Pics (Speakers, Members, etc.) to Your Pages
Hello, the Planet Jekyll Plugin of the Month series presents a new addon for your (static) web pages every month. The first one in the series: Avatar - Add Profile Pics (Speakers, Members, etc.) to Your Pages. Happy Publishing w/ Jekyll. Cheers.
Helpy 1.1 released: New ticketing features and more
Helpy 1.1 has been released with some exciting new support ticketing features. Read the full Blog Post Announcement or Clone it
Better Login UX without security risks
Let’s break the bad practices of showing ambiguous error messages to our users and let’s start improving our login UX! Tweak your Devise forms with these three easy steps.