CentOS 5, Ruby on Rails, Apache, FastCGI/FCGI

Meine Installationsschritte für Apache, Ruby on Rails, fcgi, mod_fastcgi, rmagick auf CentOS 5 Jan Bromberger am 10. Januar 2010

Für ein neues Projekt haben wir gestern bei 1&1 einen Server bestellt. Es war CentOS 5 vorinstalliert. Das Projekt wird in Ruby on Rails entwickelt. Hier sind meine Installationsschritte:

Erstmal alles auf den neuesten Stand bringen:

yum upgrade
yum install lynx bc gcc make

Weiter lesen »

Validate (X)HTML and CSS in Rails functional tests

With a handy plugin, you can validate (X)HTML and CSS in your functional tests. Unfortunately, the plugin broke in Rails 2.3.x. Here's how to fix it. Jan Bromberger am 24. Dezember 2009

With a handy plugin written by Peter Donald, you can validate (X)HTML and CSS in your Rails functional tests.The plugin requires the XmlSimple gem. Make sure to install it:

sudo gem install xml-simple

Then, in your functional tests, you can write:

test "valid markup" do
  get :index
  assert_valid_markup
end

Unfortunately, the plugin broke somewhere around Rails 2.3.x, but I figured out how to fix it pretty fast. Here’s what made it work for me. Continue reading »