Just another Web Developer blog

From the Blog

File uploads is something that is used in Web Applications all of the time. It is becoming somewhat of a “standard” feature in many applications. When using rails, there are a number of ways that this feature can be achieved. Originally, I used attachment_fu and followed a tutorial (which I have since lost) that described how to perform multi-file uploads. This worked wonders. However, attachment_fu has somewhat fallen behind, or perhaps is no longer even supported. I have since started using Paperclip, as it seems to be the most common file upload plugin used for Rails and is very well supported.

The second element of this tutorial is jQuery. jQuery is one of the most popular javascript library’s that is used on the web. Furthermore, it is even easier to use with rails since the upgrade to Rails 3 and the release of the jquery-ujs gem. It only seems natural that someone would want to use Paperclip and jQuery together, and this tutorial shows you how.

(more…)

Hi all! It’s been a while since I have posted as I have been on holidays and have been rather lazy! This post is going to explain the arduous task of deploying your Ruby on Rails application in as much depth as possible to make your lives easier. It took me quite a few days to get this going, however now that I have done it once it is going to be a simple task to deploy other applications.
(more…)

The following post will cover the method of uploading documents in Ruby on Rails. When I was initially looking into doing this I could only find tutorials that covered the uploading of images. Eventually I found the attachment_fu plugin that allowed for uploading of multiple file types. Firstly, we will need to install the plugin (windows users read this first).

(more…)