Displaying 1 result from an estimated 1 matches for "mysql_date_format".
2006 Apr 26
0
active record adding odd chars to insert statement
I''ve got some code that creates a Company object and saves it:
c = Company.new(
:name => params[''company''],
:account_valid_until => mysql_date_format(14.days.from_now),
:account_type => ''standard''
)
c.save
but in the SQL generated by AR, I see (with ''name'' being what was entered):
''--- \n- name\n''
Any idea where this is coming from?? If I view the value before it''s
sav...