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.
Cells 4.1: Block Support, Better Collections, External Layouts!
Cells is a view model implementation for Ruby. The 4.1 release allows injecting external layout cells, finally supports block yielding in views, has a cool new collection API to render lists of cells, and much more.
[Pre-Launch] Your Virtual Rails Client
You taught yourself Ruby & Rails using books and online courses, but you don’t know how to build something useful from scratch? You don’t have an idea or can’t find existing projects to gain practical experience? [more inside]
Volt – A New Framework for Ruby
Volt - a new Framework for Ruby where both the server and client sides are written in Ruby via OPAL (a ruby to JavaScript compiler) so developer can write dynamic applications without writing a single JavaScript code.
The biggest Rails code smell you should avoid to keep your app healthy
I’ve chosen the biggest (IMO) Rails code smell I encounter very often and described why it’s bad and how to fix it.
Rails 5 adds a way to get information about types of failed validations
We can now get more details about the types of failed validations in Rails 5. [more inside]
Spring Cleaning: Replacing Resque with Sidekiq
How Vinted replaced Resque with Sidekiq and is happier for it: Spring Cleaning: Replacing Resque with Sidekiq
rails-api-base
rails-api-base: Rails 5 RESTful api template. Check it out here!
Mighty String now at version 1.0.2
Powerful methods for your strings. This version adds some bisection methods and Travis CI integration. See the repo: MightyString. Use: gem 'mightystring'
Ruby Error Cheatsheet
Idiosyncratic Ruby is back! The second season begins with a comprehensive overview of all default Ruby exceptions, and then takes a look at how extremely Ruby’s syntax utilizes some ASCII characters.
Gem Dependency Issues with Rails 5 Beta
An investigation into the steps required to install one popular gem (rails_admin) in a Rails 5 beta3 project. [more inside]
Object Oriented Ruby
I have been seeing a lot influence in ruby from Functional programming and not as such in ruby itself but in code written in ruby. Developers try new things, they are fascinated by other languages, how they solve problems. They try to change ruby into functional language, they loose sight of how problems can be solved in the Object Oriented Programming. Let’s do a refresher of some most important aspects of OOP. Read more on OORuby
Deploying sinatra web application to google clouds platform
Creating basic ‘hello world’ app with sinatra and deployment to google clouds platform. http://warolv.net/blog/2016/04/29/deploying-sinatra-web-application-to-google-clouds-platform/
[Screencast] WYSIWYG Editor with Summernote
Integrate Summernote WYSIWYG Editor into your application. Learn how to use AJAX callbacks to filestore your images instead of database Base64. https://www.driftingruby.com/episodes/wysiwyg-editor-with-summernote
Introduction to blocks in Ruby
Check out my new blog called Zen Ruby. The first post is an introduction to blocks. Your comments and suggestions will be greatly appreciated.
Spreadsheet Architect v1.4.0 Released
I’ve just released a new version of the gem Spreadsheet Architect. Previously the only way to use it was to include it in a class/model. This release adds the ability to create XLSX, ODS, & CSV spreadsheets without the class/model using an array of data. https://github.com/westonganger/spreadsheet_architect
New gem "acts_as_encryptable"
Simplified record encryption. Implemented to integrate with Rails existing encryption methods. See the repository: acts_as_encryptable
Stackprofin' to N+1 query detection
Getting to the line-of-code of problematic N+1 SQL queries in production is…hard. A deep dive into how we used Stackprof to add N+1 detection to Scout.
Trailblazer – A New Architecture For Rails [Review]
Trailblazer is a “framework” for dealing with the inevitable complexity of a Rails project. By providing a set of tools for adding abstraction, Trailblazer sets a common standard and a methodology for dealing with complexity, without you having to reinvent the wheel for yourself. Read the article.
How to test a function that yields a block with Minitest and Rspec
Have you ever tried writing a test for a function that takes a block and does something to that block? I recently had to do that same thing and found there was not much written about it so in this post I’m going to fix that, I’m going to show you how to create expectations on block arguments. Read the article.
Integrating Trailblazer and ActiveRecord transactions outside of a request lifecycle
When you use Ruby on Rails with ActiveRecord, you can get used to having separate transaction on each request. This is valid also when using Trailblazer (when inside of a request scope), however Trailblazer on its own does not provide such functionality. It means that when you’re using it from the console and/or when you process stuff inside background workers, you no longer have an active transaction wrapping around an operation. Here’s a blog post I wrote on how to add such functionality into your operations.
"Ruby Web Dev: The Other Way" guide
I have started my personal guide to give a junior/middle Ruby wed developers a brief insights on different aspects: from Ruby code architecture to Frontend and DevOps. All the things that I consider viable for a modern Ruby Web Developer. As soon as some topic appears in our team’s internal discussions, and it has pros/cons - it is transferred to this guide. [more inside]
Improving Large Rails Apps with Service Objects
Nothing has improved my Rails apps more than service objects. A couple of weeks ago, I was asked to help out with an established Rails app. I found a User model that included 28 modules. All but 8 were namespaced under Users. A core object in your system, used everywhere, and it’s thousands of lines long. Madness like this can be sidestepped with service objects. Find out how.
Unobtrusive JavaScript via AJAX in Rails
Daniel Clark explains how you can update a dynamic webpage in JavaScript using AJAX in Rails.
Octopod (Jekyll Podcasting Theme) Relauchned - Build Radio Show Sites in Ruby
Hello, At yesterday’s Vienna.html (static site) meetup Stefan Haslinger presented the updated and “relaunched” Octopod Jekyll Podcasting theme. What’s included? [more inside]