You are here: Browse Railsplugins File Column 0.3
Let’s assume an model class named Entry, where we want to define the “image” column as a “file_upload” column.
class Entry < ActiveRecord::Base file_column :image end
Just drop the whole directory into your application’s “vendor/plugins” directory. Starting with version 1.0rc of rails, it will be automatically picked for you by rails plugin mechanism.
Please look at the rdoc-generated documentation in the “doc” directory.
There are extensive unittests in the “test” directory. Currently, only MySQL is supported, but you should be able to easily fix this by looking at “connection.rb”. You have to create a database for the tests and put the connection information into “connection.rb”. The schema for MySQL can be found in “test/fixtures/mysql.sql”.
You can run the tests by starting the “*_test.rb” in the directory “test”
Bug reports (as well as patches) and feedback are very welcome. Please send it to sebastian.kanthak@muehlheim.de
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly