Forum: Ruby on Rails active record adding odd chars to insert statement

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
786aca6b4728622a57a2c34fb1c9f0cd?d=identicon&s=25 Rich Brant (Guest)
on 2006-04-26 21:20
(Received via mailing list)
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
saved, the chars aren't in there..



--
http://brantinteractive.com
rbrant@brantinteractive.com
v. 267.640.2195
f. 215.689.1454
This topic is locked and can not be replied to.