Archiv vom September 2008

Endlich ein Zimmer

Vom 23. September 2008

Vor ein paar Minuten hab ich einen netten Anruf bekommen. Nach fast genau zwei Monaten Suche (erste eMail hab ich am 22. Juli verschickt) ist es nun endlich geschaft: ich hab ein Zimmer in Stuttgart! Zu dem noch eins in Fahradreichweite zur HDM und in einer 5er WG in einem Haus voller Studenten. Das alles zu einem Preis von 280 € Kaltmiete und 45 € Nebenkosten für 11 m². Vielleicht nicht das aller billigste, was man in Stuttgart findet, aber doch im gut akzeptablen Mittelfeld.

Momentan bin ich einfach nur froh, dass es endlich etwas geworden ist. Nachdem ich insgesamt 35 Leute per eMail angeschrieben hab und wer weiß wie viele angerufen hab (vielleicht 20?) ist es eine Erleichterung, jetzt endlich etwas gefunden zu haben. :)

Abgelegt in: Sonstiges | Kommentare ansehen und hinterlassen (1)

locator.rb:91:in `add’: wrong number of arguments

Vom 19. September 2008

This post is about a Ruby on Rails problem that troubled me some time now. More specifically it’s about Rails’ gem dependencies which somehow do not work on Ubuntu 8.04. No matter which gem I added to the gem list in environment.rb, Rails raised a strange error as soon as the gem was installed:

/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/rails/plugin/locator.rb:91:in `add': wrong number of arguments (2 for 1) (ArgumentError)
    from /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/rails/plugin/locator.rb:91:in `plugins'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/rails/plugin/loader.rb:63:in `locate_plugins'
...

After searching around a bit I found the Rails ticket #293 at Lighthouse. The last post describes the error above and luckily explains the solution.

The Rubygem files are usually stored at /usr/local/lib/site_ruby/1.8. These are the up to date source files for Rubygems. I installed this Rubygems version from source but somehow an older version of Rubygems found it’s way into the /usr/lib/ruby/1.8 directory. Now Rails used the obsolete Rubygems stuff from there which caused the error.

The solution

After deleting the /usr/lib/ruby/1.8/rubygems directory and the /usr/lib/ruby/1.8/rubygems.rb file everything went fine. Rails gem dependencies up and working. :)

If someone knows which deb packet contains these obsolete Rubygem files, please let me know or file a bug report at Luncepad.

Thanks to Dusty Doris for hunting down this bug and pointing out the solution. I hope this post will make the search a bit easier for people with the same problem.

Abgelegt in: Programmieren | Kommentare ansehen und hinterlassen (2)

Projekte

Simple Localization
Ein einfaches, aber macht- volles Übersetzungsplugin für Ruby on Rails.
Table Navigation
Ein jQuery Plugin um per Tastatur schnell durch Tabellen zu navigieren.

Über was ich schreibe…

Newsfeeds

Kommentare