Monthly Archives: September 2009
Validating multiple fields with one validator in Flex3
I like laying out forms in MXML because it’s easy to read. In a recent project, I had five email fields and it looked something like this:
<mx:Form id="myForm">
<mx:FormItem label="1." labelStyleName="tenEmailsLabel">
<mx:TextInput id="email1" width="300" fontSize="13" />
</mx:FormItem>
<mx:FormItem label="2." labelStyleName="tenEmailsLabel">
<mx:TextInput id="email2" width="300" fontSize="13" />
</mx:FormItem>
<mx:FormItem label="3." labelStyleName="tenEmailsLabel">
<mx:TextInput id="email3" width="300" fontSize="13" />
</mx:FormItem>
<mx:FormItem label="4." labelStyleName="tenEmailsLabel">
[...]
Configuring Phusion Passenger on a 256MB Ubuntu Slice @Slicehost
I installed Phusion Passenger a few weeks ago to get a production environment up and running for my Rails app. It was super easy to install and felt like magic. I checked off the item on my TODO and moved on. After all it didn’t say “YOUR APP WILL BE SLOW AS [...]
Posted in Software Tagged apache, configuration, passenger, phusion, rubyonrails, ubuntu Comments closed

Logging your Rails model (the easy way)