mephisto snippets

Fixing "warning: already initialized constant OPTIONS"

Tagged rails, mongrel, edge, mephisto  Languages bash

If you're using Edge Rails and mongrel you might have seen this error:

warning: already initialized constant OPTIONS

There's a bug report here that explains this problem in detail.

The solution for me was to rerun the freeze command:

rake rails:freeze:edge

You might also get "warning: already initialized constant OPTIONS" error if you haven't installed a gem your software relies on. In the following example openssl should be installed:

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require’: no such file to load—openssl (MissingSourceFile)

ActiveResource might also be the problem:

gem install activeresource --source

Mephisto title...

Tagged mephisto, title  Languages 
<title>{% if article %} {{ article.title }} &raquo; {{ site.title }} {% else %} {{ site.title }} &raquo; {{ site.subtitle }} {% endif %}</title>