Plugin: cssForm

Published on

AD.D SoftWare have developed a new plugin for Rails called cssForm that lets you create forms without tables, entirely using CSS. The interesting thing about this plugin is the way it lets you wrap certain behavior around standard elements. This technique could be very useful to pick about and redevelop for your own preferences.

How to search for a string on multiple fields across multiple joined tables in Rails

Published on

In my project I have to write a search controller, in which I have to search for a string on multiple fields across join tables. There are two controllers Project, Publication and two models project and publication. Project has many publication and publication belongs to project. I wanted to search for a string on all … Continue reading How to search for a string on multiple fields across multiple joined tables in Rails

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