Plugin: file_column

Published on

This is straight from the “file_column website”:http://www.kanthak.net/opensource/file_column/: Just make the “image” column ready for handling uploaded files… [source:ruby] class Entry < ActiveRecord::Base file_column :image end [/source]… generate file fields *that keep uploaded images during form redisplays to your view… <%= file_column_field “entry”, “image” %> … and display uploaded images in your view: <%= image_tag url_for_file_column(“entry”, … Continue reading Plugin: file_column

Plugin: NumbersToWords

Published on

In my RAILS application I need to convert numbers to words. I started writing own function but before I finish that I got an amazing Plugin. This Plugin is capable to convert number to words. Following are some examples >> 5.to_english => “five” >> 123456.to_english => “one hundred twenty-three thousand four hundred and fifty-six” >> … Continue reading Plugin: NumbersToWords