blog.depold.com |
Web programming to the rescue! A blog about Node.JS, JavaScript and Ruby on Rails! |
Today I found a very strange behavior of Ruby on Rails. I wanted to render a partial using the collection option. So far so normal. But: I needed the result to be wrapped with some stuff, so I found out, that you can just specify a layout! What I expected to get was something like:
Layout Layout LayoutRead more
<%= yield %> <—- this should be filled with my partial Layout Layout Layout
Da ich derzeit studienbedingt mit Java hantiere, fiel mir auf, was für ein Krampf das Erstellen von HashMaps in Java ist. Vom Durchiterieren sei an dieser Stelle noch gar nicht die Rede!
Da ich aus der JavaScript/Ruby-Welt komme und dort Hashes Gang und Gebe sind, war ich leicht schockiert :D
Read more
Wer zur Mitarbeit an einem Heroku Projekt eingeladen wird, muss entgegen der Anleitung auf http://docs.heroku.com/sharing zuvor noch einen zusätzlichen Schritt durchführen. Versucht man direkt einen Checkout des Projektes, schlägt dieser Vorgang fehl.
git clone -o heroku git@heroku.com:myapp.gitRead more
Initialized empty Git repository in /Users/user/Projects/myapp/.git/
Permission denied (publickey).
fatal: The remote end hung up unexpectedly