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.
How To Do A Case Or Switch Statement In SQL And Rails
This article describes the SQL case statement and how to use it in Rails. https://solidfoundationwebdev.com/blog/posts/how-to-do-a-case-or-switch-statement-in-sql-and-rails
New framework defaults in Rails 5 to make upgrade easier
To make the upgrade process easier, Rails 5 has added feature flags for all of the breaking changes, Read more about it in the blog post : [more inside]
field based authorization using cancancan
Blog post about a way to utilize cancancan to provide a field based authorization. http://sirfilip.github.io/cancancan-field-based-authorization
How to deploy Refinery CMS on Heroku
We have recently updated the guide to install and deploy a Refinery application on the Heroku hosting platform: Refinery CMS Heroku guide
Minitest Cheat Sheet
This cheat sheet is for novice programmers (or more experienced developers with poor memories) and includes a basic reference to core Minitest syntax as well as assertions and Minitest::Spec expectations with simple code examples. (Free PDF, no email signup required.)
HOWTO scrape websites with Ruby & Watir
Tutorial showing you how to scrape websites with Ruby and the Watir gem. Watir is powered by Selenium, which means that unlike Mechanize you can use it to interact with JavaScript! http://readysteadycode.com/howto-scrape-websites-with-ruby-and-watir
Oprah: Opinionated presenters for Rails 5 - without the cruft
A new, lightweight but powerful presenter library for Rails 5. More information on the GitHub repository
Rails 5 allows wildcard for specifying template dependencies for cache digests
We can now use wildcard for adding all template dependencies from a directory rather than adding files one by one for cache digests. [more inside]
Why / How I Learn New Technology - Lab Report [001]
In the first episode of the lab report I show you the research I’ve been working on for the past month. I dig into why I do research and how I develop solutions from my research. As an example I will show you the solution I built using React / Webpack / Javascript, to solve a problem I have on Codemy.
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.