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.
My Rails Models Are Bloated. Should I Use Concerns?
This is a question that I’ve seen asked a couple of times: My Rails Models Are Bloated. Should I Use Concerns? [more inside]
dry-rb.org - Introducing dry-system
Learn about a new way of organizing application’s code with the new release of dry-system. See the official announcement!
[Screencast] FullCalendar Events and Scheduling
Learn how to incorporate FullCalendar into your Ruby on Rails application with listing and creating events. Using unobtrusive javascript, we can create a fast interactive calendar. https://www.driftingruby.com/episodes/fullcalendar-events-and-scheduling
Creating a trashing concern in rails 5
Softly destroy records across multiple models from a single concern http://www.victorareba.com/tutorials/creating-a-trashing-concern-in-rails-5
Rails Composer Introduction
This week’s screencast from Fullstack Videos shows how to use Rails Composer. Rails Composer is a popular tool for generating starter applications.
Rails and Webpack: No Gem Required
Integrating Rails with Node.js-based asset pipeline doesn’t mean you have to use another gem to connect these components. In the post, I share some approaches and helpers that helped me integrate Webpack into existing Rails app and smoothly deploy the assets to Heroku.
The Upgrade Trails
Tales from multi-year Rails upgrades at Code School, sprinkled with bits of hindsight.
PostgreSQL and Rails
PostgreSQL and Rails shows some features that make this combination so powerful.
Advanced SQL in Rails - Part 2
I wrote a blog post recently covering advanced SQL functions like windows and views. In the follow-up, I discuss how to integrate those into Rails. [more inside]
How to implement image uploader to TinyMCE
Easy way to implement image uploader to TinyMCE http://blog.active-bridge.com/how-to-implement-nice-image-uploader-to-tinymce
Hacking hierarchical joins into Spreadsheets, Rails Style
I got frustrated that spreadsheets don’t support easy ActiveRecord-style joins, so I hacked belongs_to and has_one support into my startup’s spreadsheet API. Here’s the writeup
Looking for a Ruby Medium API client?
I was looking for a Ruby Medium API client but wasn’t convinced by the existing options so I wrote my own.
Ruby Returns Incorrect Integer Or Decimal Places When Dividing Two Numbers
An article on the quirks of Integer, Float, and Decimal math in Ruby and why Decimals are important. https://solidfoundationwebdev.com/blog/posts/ruby-returns-incorrect-integer-or-decimal-places-when-dividing-two-numbers
How to Test Rails Models with Minitest
Learn how to test the main aspects of Ruby on Rails models with the Minitest testing suite. https://semaphoreci.com/community/tutorials/how-to-test-rails-models-with-minitest
Read Along With Ruby Book Club
Ruby Book Club is a weekly podcast for people who like to read Ruby and OOP books. In April, May and July they read “Confident Ruby” by Avdi Grimm (find it in the archives), now they’ve started the brand new http://99bottlesbook.com/ by Sandi Metz and Katrina Owen. I’ve read along from the beginning and enjoyed the regular reading schedule, the discussions and the fun - and I’ve got much more out of the books than on my own. Want to join in? Find it at http://rubybookclub.com
Build Your Own Web Server
Have your ever built your own web server? It’s not that hard, you can learn how to do it (using Ruby) in this post! http://www.blackbytes.info/2016/08/build-your-own-web-server/
Bundling dependencies inside Ruby gems
Here is a new article about how (and why) I now include all of Brakeman’s dependencies inside of the main “brakeman” gem.
Why is URI.join so counterintuitive?
I recently found myself using URI.join to construct certain some redirect URLs. But I quickly ran into a problem. URI.join wasn’t behaving like I expected. In this post we trace the unexpected behavior through the source of URI.join and back to the original RFC. - http://blog.honeybadger.io/why-is-uri-join-so-counterintuitive/
Testing Your Rails Admin Authentication
You’ll write 2 very simple tests to ensure only admins can access your admin area.
Care About What You Build
I wrote a new article on Caring About What You Build. Hope you enjoy!