Tag Archives: Ruby

Pretty HTML Output With HAML

HAML, by default in development renders “pretty”, correctly indented HTML output. In production it renders “ugly” output by default. I really appreciate the value of indented html output. If only so that when debugging HTML source (sometime DOM isn’t good … Continue reading

Posted in Random Stuff | Tagged , , | Leave a comment

Debugging Mootools 1.2.4, Rails 3 UJS Problems… Solved!

In Times Of Crisis… Spent a whole evening last night trying to get the Mootools Rails 3 UJS driver working correctly. Links created in templates were recognised as having “data-remote” attributes as rails.js applies events on domready but dynamically created … Continue reading

Posted in Gotchas, Javascript, RoR, Ruby | Tagged , , , , , | 2 Comments

gem install nokogiri fails if libxml2 and libxslt packages aren’t installed

I’ve had to do a couple of setups over the past few weeks and every time I forget about this so here’s a reminder. The Nokogiri gem requires libxml2 and libxslt to install. Otherwise it throws this horrible make error … Continue reading

Posted in Gotchas, Ruby | Tagged , , | Leave a comment

Ronseal Ruby 1.9.2-p0/Rails 3 install instructions for Ubuntu 10.1

Just found these install instructions for Ruby 1.9.2-p0 and Rails 3 which don’t assume you already have a Ruby installation.  The instructions are actually for Ubuntu 10.4 but I’ve had no problems installing on Ubuntu 10.10. I was going to … Continue reading

Posted in Programming, Ruby, Ubuntu | Tagged , , , , | 2 Comments

Protected: Rails App From Scratch: Part 2

There is no excerpt because this is a protected post.

Posted in Programming, RoR, Ruby | Tagged , , , ,

Git Tips, Tricks and Questions #1

So you have a rails app and you need to remove all references to a particular resource (model, controller, views, tests etc.) from Git on the command line in one nice simple command? Easy… git commit *resourcename* -m “deleting all … Continue reading

Posted in Git, Programming, RoR | Tagged , , , | Leave a comment

Set database type when creating a new Rails app

I’ve just started to use Heroku to host my apps and have found that i keep editing the default database after i’ve created the Rails app. Obviously this is very frustrating and was making me think i’d missed something, so … Continue reading

Posted in Ruby | Tagged , , | Leave a comment