Skip to content

making a simple field in AR as a concatenation of multiple values

License

Notifications You must be signed in to change notification settings

kaktos/acts_as_concatenation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActsAsConcatenation
===================

This plugin make multiple selected values joined into a single database column.


Example
=======

class Product < ActiveRecord::Base
  acts_as_concatenation :compatible_with
end

In the erb view file:
<%=f.checkbox_group :compatible_with, [['iPhone 3GS',1],['iPhone 4G',2]] %>
will generate the checkbox group for this column.

Copyright (c) 2009 Hao Chen, released under the MIT license

About

making a simple field in AR as a concatenation of multiple values

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages