The current release of OpenLaszlo doesn’t like empty handler tags. If you compile the following code, you’ll get a compiler warning: <canvas debug="true"> <handler name="oninit"> </handler> </canvas> The warning will say: “Refusing to compile an empty handler, you should declare the event instead” This wasn’t the case previously. The warning is intended to educate developers [...]
Entries from August 2008
Empty Handlers in OpenLaszlo 4.1
August 28th, 2008 · 2 Comments
Tags: LZX Tips
Installing RMagick on Cygwin
August 24th, 2008 · 3 Comments
RMagick is a Ruby to ImageMagick framework that’s needed if you want to edit images using Rails. FileColumn, a Rails plugin for handling file uploads, plugs into RMagick very smoothly. While FileColumn is really simple to use, installing RMagick on Cygwin seemed really daunting. There were a bunch of warnings on how it differs from [...]
Tags: Rails
Using the form_for Method with multipart in Rails
August 22nd, 2008 · 4 Comments
If you’re going to upload files via an HTML form, the form’s encoding must be set to multipart/form-data. In Rails, you use a helper method to generate the form tags, so you can’t directly edit them. The preferred helper is form_for; that’s what scaffold generates. Normally, a form_for call would look like this: <% form_for(@entry) [...]
Tags: Rails