Displaying 5 results from an estimated 5 matches for "socheat".
Did you mean:
cheat
2006 Jul 06
2
Not accepting nil values in fields when CREATING a record
Hello,
I have a question for you.
In my application, I want to make sure that the database doesn''t have
any NULLs in fields.
I can''t use validates_presence_of, because it will puke if there''s an
empty string ("")
So... is there an EASY way to check if a list of fields is null?
Right now, I''m doing:
def validate()
[...]
2006 May 16
5
rake aborted when adding a column
I''m having a silly little problem with migrations. All I''m
trying to do is to add an SSN column to my Employees table. I
generated a migration which looks like:
class AddSsn <
ActiveRecord::Migration
def self.up
add_column :employees,
:ssn,
:string
end
def self.down
remove_column :employees,
:ssn
end
end
When I run this, however, I get:
>rake
2006 Jul 06
1
Form not inserting data into database
I have a form to register a user. The issue I am having is the fact that
it only populates login, hashed_password and created_at fields.
DB table:
create table users (
id int not null auto_increment,
login varchar(100) default null,
hashed_password char(40) default null,
email varchar(255) default null,
salt varchar(255) default
2006 May 15
0
Insert database into two tables.
Hi All,
I have problem with inserting new record into the database.
I have a form has 4 fields, and two fields will be inserted into tableA,
and other fields will be inserts into tableB.
These two tables has relationship tableA(One) and tableB (Many) ...so
how could I do that?
Socheat Yi
Web Programmer/Software Developer
Screened Images Multimedia (SIM)
*If You Can Imagine It...We Can Create It.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060515/34e56908/attachment.html
2006 Jul 05
1
TMail + Receing mail and extract attachments
...eive''
from receivePop.rb:46
from receivePop.rb:44:in `open''
from receivePop.rb:44
from receivePop.rb:43:in `each''
from c:/ruby/lib/ruby/1.8/net/pop.rb:528:in `each_mail''
from receivePop.rb:43
Any idea?...
Thanks,
Socheat Yi
--
Posted via http://www.ruby-forum.com/.