search for: customnam

Displaying 2 results from an estimated 2 matches for "customnam".

Did you mean: customname
2005 Dec 27
10
ActiveRecord flexible columns
I would like to have a table with flexible columns. For example i have the following table customers: id name email The user should be able to save other columns to the database as well : me = Customer.find(10) me.name = ''me company'' me.email = ''me-RPlE4GnVVoJHoQZOM9yvow@public.gmane.org'' me.msn = ''me1234'' # custom columns me.birthdate =
2010 Dec 30
3
rake db:seed with has_many through (m:n with seperate table)
...id" create_table "users", :force => true do |t| t.string "email", :default => "", :null => false end Models class Sharedtab < ActiveRecord::Base # attr_accessible :tab_id, :owner, :permissions, :position, :customname, :customcategory belongs_to :user belongs_to :tab validates :user_id, :presence => true validates :tab_id, :presence => true end class User < ActiveRecord::Base # attr_accessible :name, :email has_many :sharedtabs, :dependent => :destroy has_many :tabs,...