Make rails3 deployment more robust with inploy
I never touched Capistrano, it looked like a rake spinoff. I started using Vlad instead (my post in Hungarian), but at some point, it started to be very frustrating. Deployment took too long, deployment versions lost their meaning (you won’t remember which was the last one which worked well), and all these small things led me to Inploy by Diego Carrion. (more…)
Getting familiar with Rails 3
With the advent of Rails 3, we have to learn a lot. We have great sources, like a free PeepCode screencast for live upgrade, not mentioning the release notes. I don’t want to rephrase the install, but some config differences which make our job easier. (more…)
Unobtrusive JqGrid on Rails à la 2dconcept, but with Searchlogic
JqGrid makes our tablework easier on the web, but the original solution is obtrusive. Let’s see how we can polish it. (more…)
Confirmed!

Add Authlogic and Lockdown to your rails app
This is not the first time I met Lockdown. I wanted to use it earlier. According to the docs, it was awesome. Real RBAC with no hassle. However, when I tried to actually use it, it locked my app down. Completely. In the end I gave up, and started over with Clearance. It was good and it worked as intended, but it’s still an authentication layer, with no roles / groups / whatever defined. I tried Acl9 out too, which did it’s job, but role definitions were scattered throughout the controllers. Then I fed up with Clearance too, it made too much noise in my application. I ended up having Authlogic with some sort of Acl9, but it just not felt right.
However, a couple of weeks ago, I noticed that Lockdown reached 1.0. Moreover, now it has Authlogic support, and even model-level permissions! Yikes! Of course fighting lockdown not to lock down everything was not easy, especially in the tests. I think it is worth to have my experiences documented. (more…)
Add form fragments dynamically
A new feature of Rails is the ability of manipulating related models. While it’s great, dynamically adding / removing nested model entries is not an established way. However, it’s already solved by Eloy Duran. His method was for Prototype and default form builder, which had to be converted to HAML, JQuery and Formtastic one for me. Here’s how. (more…)
Switch to English
I’m fed up with low page impression, and I decided to go with the English Mania. From now on, I’ll publish my unix and web experiences in English.
Tárgyalás a bérgyilkosokkal
Lassan bocsánatot kell kérjek a mindent magyarítás miatti szenzációhajhász címek miatt
Szóval az úgy kezdődött, hogy a pet projectemet egyre több és több dologgal szeretném felcicomázni, szeretném belakni az új környezetet, és eközben akadtam rá a Capistrano bonyolultságával szembehelyezkedő Vlad-ra.
Persze nézem a forrást, és látom, hogy egyszerűcske a dolog, szögletes az a karika, de aztán belenéztem a capistrano forrásába, hogy némi fícsört vigyek a vlad-ba, és azt kell mondjam, akkor már a bérgyilkos szakasz. Nem teljesen egyértelmű a használata, de azért jól ki lehet jönni vele. (more…)
Kedvenc drágaköveim
Nagy döcögősen elkezdtem a leendő rails környezetemet kialakítani, és bizony nem minden (agyondícsért) plug-in meg gem gyerebe. Szerencsére már van, ami bevált.
Szélmalomharc a SASL-al
Úgy kezdődött, hogy egyszercsak rájöttem, hogy jólesne, ha két gépen (jail-ben, de ez most mindegy) meglennének ugyanazok a felhasználók. Ez amúgy jól is hangzik, az egyikbe tudnak ftp-zni, a másikban meg van a webszerver, és akár át is barmolhatom a PHP-t fastcgi alapúra, és aztán tényleg szeparált lenne a sok félműködésképtelen program. Nem beszélve arról, hogy a Passenger szereti, ha a webjail-ben is ott van a futtató account, csak szíre-szóra UID alapján nem indítja.
Ilyenkor ugye, mint általában, körülnéz az ember a piacon. Na, prospektusok (HOWTO-k) elő, és jöttek a NIS, LDAP, Kerberos, Radius, PAM-MySQL okosságok sorra. Deremek. NIS. Kösz, van a cégben, és ott bőven sok az is. A PAM-MySQL lett volna még a remekség, de mivel kb. 2006-ban úgyhagyták az utolsó élő példányt is, ezért fájó szívvel letettem róla. A Kerberosnak meg kell valami gazdaállat, és egyébként is kissé overkil. Maradt hát az LDAP. (more…)
Recent Comments