Entries from August 2008
August 28th, 2008 · 1 Comment
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 [...]
[Read more →]
Tags: LZX Tips
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 [...]
[Read more →]
Tags: Rails
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) do |f| [...]
[Read more →]
Tags: Rails