We’re not a bootcamp, we’re a finishing school.
This looks like a fantastic resource and now it’s available to everyone!
We can use
now()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())")
About a month ago, I quietly launched a new version of this site. It’s been in the works for quite some time.
Transfer-Encoding: chunkedheader, 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.
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.
These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.
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.
jRails is a jquery drop-in replacement for prototype/scriptaculous in Rails.
Use of the Account Location Plugin.