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 [...]
Entries Tagged as 'Rails'
Installing RMagick on Cygwin
August 24th, 2008 · 2 Comments
Tags: Rails
Using the form_for Method with multipart in Rails
August 22nd, 2008 · No 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) do |f| [...]
Tags: Rails
Passing Arguments to before_filter in a Rails Controller
July 15th, 2008 · 5 Comments
I’ve been working with Ruby on Rails a lot recently. It’s a great platform for creating both old-fashioned web applications as well as services for RIAs. I especially like the fact that Rails encourages you to think about the right way to do something, before writing any code. For all you know, that complex thing [...]
Tags: Rails