Saturday, December 15, 2012

[Rails] Re: save 2 value in diffrent field in one field at database

so, did you mean. i must change my model file to be like this:

class Anggotum < ActiveRecord::Base
set_table_name "anggota"
attr_accessible :NP, :Nama, :Alamat, :TTL, :Telp, :Email, :Password,
:Waktu_Daftar, :Posisi, :Jenis_Kelamin
serialize :TTL
#{':TTL'} << #{':tempat'] + #{':tanggal'}
end

it true?

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate