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.
Content tagged “Ruby on Rails”
-
-
Upcase by thoughtbot | Learn Web Development Online
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!
-
PostgreSQL Quick Tips: Working With Dates Using EXTRACT function
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())")
-
Lightning-Fast Sass Reloading in Rails
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.
-
Launching FrancisCMS onto the IndieWeb
About a month ago, I quietly launched a new version of this site. It’s been in the works for quite some time.
-
Chunked transfer encoding in Rails (streaming)
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).
-
Using Rails Assets Gems with Dots in the Bower Package Name
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
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.
-
Page specific, Dom-Ready Javascript Execution in Rails
-
Shared Handlebars Templates for Rails 3 | Railsware Blog
-
Shared Mustache Templates for Rails 3 | Railsware Blog
-
Ruby on Rails Guides: Asset Pipeline
This guide covers the asset pipeline introduced in Rails 3.1.
-
Compass Core Framework | Compass Documentation
-
Compass Tutorials | Compass Documentation
-
Extending Paul Irish's comprehensive DOM-ready execution
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.
-
RubyDoc.info - Library Listing
-
sbecker's asset_packager at master - GitHub
JavaScript and CSS Asset Compression for Production Rails Apps
-
Juicer - a CSS and JavaScript packaging tool / Ruby - cjohansen.no
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.
-
JavaScript dependency management and concatenation: Sprockets
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.
-
Rails Searchable API Doc
-
Ruby on Rails guides
These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.
-
Jammit: Industrial Strength Asset Packaging for Rails
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.
-
: WillPaginate::ViewHelpers [mislav-will_paginate]
-
Integrating Flickr into your rails website - Pixellated Visions
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.
-
Introducing Sprockets: JavaScript dependency management and concatenation - (37signals)
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.
-
GusG.us Smurf - Rails Javascript & CSS Auto-minifying plugin
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?
-
JavaScript makes relative times compatible with caching - (37signals)
-
How to do Basecamp-style subdomains in Rails - (37signals)
-
jRails - jQuery on Rails
jRails is a jquery drop-in replacement for prototype/scriptaculous in Rails.
-
irb readline support on Leopard – The Pug Automatic
-
Hivelogic: Installing Ruby, Rubygems, Rails, and Mongrel on Mac OS X 10.5 (Leopard)
-
How To Use Subdomains As Account Keys in Ruby on Rails
Use of the Account Location Plugin.
-
InformIT: Routing the Rails Way > The Two Purposes of Routing
-
Cardboard Rocket. Paginating Find.
-
Faster Pagination in Rails - igvita.com
-
Infovore » The CSS Redundancy Checker
-
Datetime Toolbocks - Intuitive Date Input Selection
-
Top 12 Ruby on Rails Tutorials