Installing Nokogiri on El Capitan

EDIT: This post has been updated and retitled for El Capitan.   If you have attempted to install the Nokogiri gem and encountered errors similar to the output below… I feel your pain and have a solution. The Pain ➜ z gem install nokogiri Building native extensions. This could take a while… ERROR: Error installing nokogiri: […]

The Parallel Gem and PostgreSQL (oh, and rails.)

Some Preface An app I’m working on has a rake that that basically gathers data from the web.  Doing things serially is really REALLY slow and to get around this I started using the (fantastic) parallel gem by Michael Grosser. This gem is great — it’s simple to use and in something like 3 minutes […]

Flash Messages & Twitter’s Bootstrap CSS Framework

I’m using Twitter’s Bootstrap CSS framework and it’s pretty nice.  One of the cool bundled features of the framework is that they provide classes for displaying what rails hackers know as Flash messages.  The problem here is that Twitter has named them different from what Rails people traditionally use so you cannot just drop in […]

Emit a Comma Separated List of Links From an Array in Your Rails View

Yeah, this post has the WORST title ever, but i tried to litter it with keywords so people struggling can find it easily. When messing with my Rails views I find that pretty commonly I’m dealing with lists of things i need to use link_to on AND split them with a comma.  Here’s a super […]

Some Arel Notes

I talked to a gentleman in #rubyonrails on IRC who goes by the name of codepoet_ about Rails3 and Arel for a while today and he linked me to what is somewhat of an Arel cheat sheet he created. With his permission I am reposting this as a reference tool for myself.  Hopefully someone else […]

Finding, and Ordering Through an Association

I ran into an issue today.  I have a Blog model that has_many feed_entries. In plain english, I needed a list of blogs ordered by most recently updated feed. My models look like this: blog.rb has_many :feed_entries feed_entry.rb belongs_to :blog The query that makes it possible: Blog.find(:all, :include => :feed_entries, :order => ‘feed_entries.published_at DESC’) :include […]

Google Maps in Radiant Using

This is how i got Google Maps working in Radiant CMS via the google_maps extension. This one is pretty easy, but you should know that you HAVE to be using MySQL or PostgreSQL because google_maps uses the spatial adapter plugin which needs one of those 2. First install the GeoRuby gem.  Careful this is case […]

How to Install the ‘first-reorder’ Extension for Radiant CMS

Easy as pie. First, make sure ray is installed… if it’s not, just run ./script/extension install ray Second, install the extension! rake ray:extension:install name=first-reorder This reorder extension is pretty nice.  It provides an ajaxish layout for drag/drop reordering.

How to Install the News Extension for Radiant CMS

The News extension for Radiant gives you the ability to post “News” items.  The new items are cool for mini updates on things, OR for really posting News 🙂 I am going to go through installing the News extension on Radiant 0.7.1.

How to Create a ‘Contact Us’ Page in Radiant 0.7.1

This post is more of a personal note to myself. 99% is copy/paste from either the Radiant wiki, or the Mailer extension’s github page. I’m notating this because both the Radiant wiki and Mailer’s github page have instructions that confused the hell out of me so I’m consolidating it here after getting it working. This […]