<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sean&#039;s Blog &#187; bug</title>
	<atom:link href="http://seanbehan.com/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanbehan.com</link>
	<description>Web Programming, Ruby on Rails, Wordpress, PHP from Burlington, Vermont</description>
	<lastBuildDate>Wed, 08 Sep 2010 16:10:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Problem slash Bug in Rails with attr_accessor and Datetime Select Fields</title>
		<link>http://seanbehan.com/ruby-on-rails/problem-slash-bug-in-rails-with-attr_accessor-and-datetime-select-fields/</link>
		<comments>http://seanbehan.com/ruby-on-rails/problem-slash-bug-in-rails-with-attr_accessor-and-datetime-select-fields/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 19:22:15 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[attr_accessor]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[data type]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[validations]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=492</guid>
		<description><![CDATA[Looks like there is a problem with using the attr_accessor method with datetime form fields http://dev.rubyonrails.org/ticket/8983 In Rails 2.3.2, for me at least, the problem seems to be popping up again. While trying to process a date for credit card validation, I keep getting a &#8216;nil.klass&#8217; error. Sure enough, remove the datetime select from the [...]]]></description>
			<content:encoded><![CDATA[<p>Looks like there is a problem with using the attr_accessor method with datetime form fields  http://dev.rubyonrails.org/ticket/8983 In Rails 2.3.2, for me at least, the problem seems to be popping up again. While trying to process a date for credit card validation, I keep getting a &#8216;nil.klass&#8217; error. Sure enough, remove the datetime select from the form and the problem goes away. I need to look into this a little further because I think that this has been resolved.</p>
<p>More information is available here</p>
<p>http://www.ruby-forum.com/topic/130229</p>
<p>and</p>
<p>http://www.google.com/search?q=1+error(s)+on+assignment+of+multiparameter+attributes&#038;ie=utf-8&#038;oe=utf-8&#038;aq=t&#038;rls=org.mozilla:en-US:official&#038;client=firefox-a</p>
<p>The temporary solution is to not use attr_accessor and rather add the field to the database with the correct data type</p>
<pre> t.datetime :your_datetime_attribute_you_were_once_virtualizing</pre>
<p>. Everything then works as normal. Oh well&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/ruby-on-rails/problem-slash-bug-in-rails-with-attr_accessor-and-datetime-select-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
