A directory of Ruby gemfiles used in your favorite Ruby and Rails projects!
Neat little open source project shared by John Nunemaker who linked to his Flipper Cloud gemfile.
A directory of Ruby gemfiles used in your favorite Ruby and Rails projects!
Neat little open source project shared by John Nunemaker who linked to his Flipper Cloud gemfile.
A useful, regularly updated post here from Vladimir Dementyev on configuring Docker for use with Ruby on Rails development. Also worth checking out the author’s RailsConf 2019 slides and the associated GitHub repository.
We’re not a bootcamp, we’re a finishing school.
Back in October, the thoughtbot team announced they were making their online learning platform Upcase available to all for free.
This looks like a fantastic resource and now it’s available to everyone!
A handy tip here from Karol Galanciak demonstrating how to use PostgreSQL’s EXTRACT function:
We can use
EXTRACT
andnow()
functions—the former could be used for extracting the current year from a timestamp and the latter could be used for getting the current time.Order.where("EXTRACT(year FROM created_at) = EXTRACT(year FROM now())")
How to configure a Rails project with LiveReload and speed up your front-end workflow.
It’s been a hot minute since I’ve used LiveReload, but Matt Brictson’s tutorial is thorough and well-linked.
About a month ago, I quietly launched a new version of this site. It’s been in the works for quite some time.
Using the
Transfer-Encoding: chunked
header, the server will send chunks of the rendered page back to the browser so in the case of Rails, it starts with the layout and sends out the<head>
part including assets like js and css.
Chunked transfer encoding is a great way to improve page performance for the parts of your application that require time-consuming database queries. The Rails-level changes are straightforward, but unfortunately not all Ruby web servers support the feature (looking at you, Puma).
I uncovered a curious little bug while using Rails Assets with a Bower package that had a dot in the package name. Here's how I solved it.
Rails Assets is the frictionless proxy between Bundler and Bower. It automatically converts the packaged components into gems that are easily droppable into your asset pipeline and stay up to date.
This guide covers the asset pipeline introduced in Rails 3.1.
Way back in March of '09, Paul Irish laid forth a markup-based means of executing JavaScript on page load. I iterated on Paul's method, adding a touch of HTML5 and making use of some built-in Rails magic.
JavaScript and CSS Asset Compression for Production Rails Apps
Juicer is a new command line tool that helps by resolving dependencies, merging and minifying files. It can even check your syntax, add cache busters to and cycle asset hosts on URLs in CSS files and more.
Sprockets is a Ruby library that preprocesses and concatenates JavaScript source files. It takes any number of source files and preprocesses them line-by-line in order to build a single concatenation. Specially formatted lines act as directives to the Sprockets preprocessor, telling it to require the contents of another file or library first or to provide a set of asset files (such as images or stylesheets) to the document root. Sprockets attempts to fulfill required dependencies by searching a set of directories called the load path.
These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.
Jammit is an industrial strength asset packaging library for Rails, providing both the CSS and JavaScript concatenation and compression that you’d expect, as well as YUI Compressor and Closure Compiler compatibility, ahead-of-time gzipping, built-in JavaScript template support, and optional Data-URI / MHTML image embedding.
In this post I’m going to show you how I created the little Flickr stream you can see running down the right hand edge of this site.
Sprockets is a Ruby library that preprocesses and concatenates JavaScript source files. It takes any number of source files and preprocesses them line-by-line in order to build a single concatenation.
You know how Rails 2.x has this cool feature for bundling sets of Javascript or CSS files? Yeah, they call it something like… cache. Crazy. I know. It’s cool and all, but why does not it also minify that content?
jRails is a jquery drop-in replacement for prototype/scriptaculous in Rails.
Use of the Account Location Plugin.