<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Upgrading to Rails 1.2</title>
	<atom:link href="http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/</link>
	<description></description>
	<lastBuildDate>Mon, 19 May 2008 23:03:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: hervalicio.us &#187; User expected, got User?</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-8804</link>
		<dc:creator>hervalicio.us &#187; User expected, got User?</dc:creator>
		<pubDate>Mon, 19 May 2008 23:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-8804</guid>
		<description>[...] By far one of the most annoying and unhelpful messages on Rails ever. the &#8220;User expected, got User&#8221; message tends to pop up now and then when using plugins such as acts_as_commentable or acts_as_taggable, that define models on the vendor/plugins. The solution, as pointed out by the localhost:3000 blog (nice blog name, I must say ;)), is moving any models that relate to models on your application to your own /models folder. The reason behind the problem is that the libs don&#8217;t get reloaded on each server request, whereas the models are (some thoughts on things that reload here). So theoretically, plugins that define models inside them are a bad bad practice. There&#8217;s another less intrusive way to make the plugins workm though: you can add the plugins on the &#8216;reloadable path&#8217;, as explained on spotstory: [...]</description>
		<content:encoded><![CDATA[<p>[...] By far one of the most annoying and unhelpful messages on Rails ever. the &#8220;User expected, got User&#8221; message tends to pop up now and then when using plugins such as acts_as_commentable or acts_as_taggable, that define models on the vendor/plugins. The solution, as pointed out by the localhost:3000 blog (nice blog name, I must say ;)), is moving any models that relate to models on your application to your own /models folder. The reason behind the problem is that the libs don&#8217;t get reloaded on each server request, whereas the models are (some thoughts on things that reload here). So theoretically, plugins that define models inside them are a bad bad practice. There&#8217;s another less intrusive way to make the plugins workm though: you can add the plugins on the &#8216;reloadable path&#8217;, as explained on spotstory: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hervalicio.us &#187; Blog Archive &#187; User expected, got User?</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-8680</link>
		<dc:creator>hervalicio.us &#187; Blog Archive &#187; User expected, got User?</dc:creator>
		<pubDate>Mon, 12 May 2008 02:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-8680</guid>
		<description>[...] Sem dÃºvida uma das mensagens mais irritantes que jÃ¡ tive o desprazer de encontrar nas andanÃ§as pelo Rails, a infame &#8220;User expected, got User&#8221; tende a aparecer, quando se utilizam plugins como o acts_as_commentable ou o acts_as_taggable, que definem Models dentro do diretÃ³rio vendor/plugins. A soluÃ§Ã£o, como apontado pelo blog localhost:3000 blog (belo nome para um blog, diga-se de passagem ;)), Ã© simples (apesar de meio &#8220;xunxo&#8221;): basta mover os models do plugin para o diretÃ³rio apps/models de sua aplicaÃ§Ã£o. A razÃ£o por trÃ¡s do problema Ã© que as libs (e o conteÃºdo do diretÃ³rio vendor) nÃ£o sÃ£o carregadas a cada request, quando utilizando o modo &#8220;development&#8221;, diferentemente de todo o conteÃºdo do /app . Teoricamente, definir models dentro de plugins Ã© uma mÃ¡ pratica, e deve ser evitado. Vale notar que o problema nÃ£o acontece em modo production, onde os models nÃ£o sÃ£o recarregados o tempo todo. Existe ainda uma maneira menos intrusiva de adicionar os plugins ao &#8216;reloadable path&#8217;, fazendo com que eles sejam recarregados junto da aplicaÃ§Ã£o, conforme explicado neste link: [...]</description>
		<content:encoded><![CDATA[<p>[...] Sem dÃºvida uma das mensagens mais irritantes que jÃ¡ tive o desprazer de encontrar nas andanÃ§as pelo Rails, a infame &#8220;User expected, got User&#8221; tende a aparecer, quando se utilizam plugins como o acts_as_commentable ou o acts_as_taggable, que definem Models dentro do diretÃ³rio vendor/plugins. A soluÃ§Ã£o, como apontado pelo blog localhost:3000 blog (belo nome para um blog, diga-se de passagem ;)), Ã© simples (apesar de meio &#8220;xunxo&#8221;): basta mover os models do plugin para o diretÃ³rio apps/models de sua aplicaÃ§Ã£o. A razÃ£o por trÃ¡s do problema Ã© que as libs (e o conteÃºdo do diretÃ³rio vendor) nÃ£o sÃ£o carregadas a cada request, quando utilizando o modo &#8220;development&#8221;, diferentemente de todo o conteÃºdo do /app . Teoricamente, definir models dentro de plugins Ã© uma mÃ¡ pratica, e deve ser evitado. Vale notar que o problema nÃ£o acontece em modo production, onde os models nÃ£o sÃ£o recarregados o tempo todo. Existe ainda uma maneira menos intrusiva de adicionar os plugins ao &#8216;reloadable path&#8217;, fazendo com que eles sejam recarregados junto da aplicaÃ§Ã£o, conforme explicado neste link: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skwpspace &#8211; Rails 2.0 dependency system problems</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-6925</link>
		<dc:creator>skwpspace &#8211; Rails 2.0 dependency system problems</dc:creator>
		<pubDate>Wed, 27 Feb 2008 22:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-6925</guid>
		<description>[...] http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/" rel="nofollow">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian McNaboe</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-6425</link>
		<dc:creator>Brian McNaboe</dc:creator>
		<pubDate>Mon, 11 Feb 2008 19:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-6425</guid>
		<description>I&#039;m seeing this &#039;User expected, got User&#039; in Rails 2.0.2 now (and wasn&#039;t see it in 1.2.3).  I also run into what appears to be the same problem when using the spec_server.

Putting the fix above in my development.rb file seems to have resolved the problem in development, but not for the spec_server (even when placed in environment.rb).  I&#039;ll need to dig deeper into that.

Thanks for saving me a ton of time!</description>
		<content:encoded><![CDATA[<p>I&#8217;m seeing this &#8216;User expected, got User&#8217; in Rails 2.0.2 now (and wasn&#8217;t see it in 1.2.3).  I also run into what appears to be the same problem when using the spec_server.</p>
<p>Putting the fix above in my development.rb file seems to have resolved the problem in development, but not for the spec_server (even when placed in environment.rb).  I&#8217;ll need to dig deeper into that.</p>
<p>Thanks for saving me a ton of time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; links for 2007-07-25 &#124; Paul Cowles</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-2444</link>
		<dc:creator>&#187; links for 2007-07-25 &#124; Paul Cowles</dc:creator>
		<pubDate>Tue, 28 Aug 2007 21:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-2444</guid>
		<description>[...] spotstory Â» Upgrading to Rails 1.2 gotchas for the 1.1 to 1.2 rails upgrade (tags: rails ruby) [...]</description>
		<content:encoded><![CDATA[<p>[...] spotstory Â» Upgrading to Rails 1.2 gotchas for the 1.1 to 1.2 rails upgrade (tags: rails ruby) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: User expected, got User?</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-1305</link>
		<dc:creator>User expected, got User?</dc:creator>
		<pubDate>Sat, 07 Jul 2007 17:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-1305</guid>
		<description>[...] Sem dÃºvida uma das mensagens mais irritantes que jÃ¡ tive o desprazer de encontrar nas andanÃ§as pelo Rails, a infame &#8220;User expected, got User&#8221; tende a aparecer, quando se utilizam plugins como o acts_as_commentable ou o acts_as_taggable, que definem Models dentro do diretÃ³rio vendor/plugins. A soluÃ§Ã£o, como apontado pelo blog localhost:3000 blog (belo nome para um blog, diga-se de passagem ;)), Ã© simples (apesar de meio &#8220;xunxo&#8221;): basta mover os models do plugin para o diretÃ³rio apps/models de sua aplicaÃ§Ã£o. A razÃ£o por trÃ¡s do problema Ã© que as libs (e o conteÃºdo do diretÃ³rio vendor) nÃ£o sÃ£o carregadas a cada request, quando utilizando o modo &#8220;development&#8221;, diferentemente de todo o conteÃºdo do /app . Teoricamente, definir models dentro de plugins Ã© uma mÃ¡ pratica, e deve ser evitado. Vale notar que o problema nÃ£o acontece em modo production, onde os models nÃ£o sÃ£o recarregados o tempo todo. Existe ainda uma maneira menos intrusiva de adicionar os plugins ao &#8216;reloadable path&#8217;, fazendo com que eles sejam recarregados junto da aplicaÃ§Ã£o, conforme explicado neste link: [...]</description>
		<content:encoded><![CDATA[<p>[...] Sem dÃºvida uma das mensagens mais irritantes que jÃ¡ tive o desprazer de encontrar nas andanÃ§as pelo Rails, a infame &#8220;User expected, got User&#8221; tende a aparecer, quando se utilizam plugins como o acts_as_commentable ou o acts_as_taggable, que definem Models dentro do diretÃ³rio vendor/plugins. A soluÃ§Ã£o, como apontado pelo blog localhost:3000 blog (belo nome para um blog, diga-se de passagem ;)), Ã© simples (apesar de meio &#8220;xunxo&#8221;): basta mover os models do plugin para o diretÃ³rio apps/models de sua aplicaÃ§Ã£o. A razÃ£o por trÃ¡s do problema Ã© que as libs (e o conteÃºdo do diretÃ³rio vendor) nÃ£o sÃ£o carregadas a cada request, quando utilizando o modo &#8220;development&#8221;, diferentemente de todo o conteÃºdo do /app . Teoricamente, definir models dentro de plugins Ã© uma mÃ¡ pratica, e deve ser evitado. Vale notar que o problema nÃ£o acontece em modo production, onde os models nÃ£o sÃ£o recarregados o tempo todo. Existe ainda uma maneira menos intrusiva de adicionar os plugins ao &#8216;reloadable path&#8217;, fazendo com que eles sejam recarregados junto da aplicaÃ§Ã£o, conforme explicado neste link: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-1127</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 20 Jun 2007 00:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-1127</guid>
		<description>Very helpful.  

We also got stung by a discrepancy between the way 1.1.6 and 1.2.3 handles updates to a has_one relationship.  When updating the parent, 1.1.6 updates the child, while 1.2.3 does not.  See example here:

http://dev.rubyonrails.org/ticket/8673</description>
		<content:encoded><![CDATA[<p>Very helpful.  </p>
<p>We also got stung by a discrepancy between the way 1.1.6 and 1.2.3 handles updates to a has_one relationship.  When updating the parent, 1.1.6 updates the child, while 1.2.3 does not.  See example here:</p>
<p><a href="http://dev.rubyonrails.org/ticket/8673" rel="nofollow">http://dev.rubyonrails.org/ticket/8673</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-986</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Thu, 07 Jun 2007 03:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-986</guid>
		<description>Thanks for the explanation. I&#039;ve run into this problem now in trying to cache database &#039;constants&#039; from a file in the lib directory. This has been the most useful description of the problem I&#039;ve found yet.</description>
		<content:encoded><![CDATA[<p>Thanks for the explanation. I&#8217;ve run into this problem now in trying to cache database &#8216;constants&#8217; from a file in the lib directory. This has been the most useful description of the problem I&#8217;ve found yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#8217;s blog &#187; links for 2007-06-01</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-867</link>
		<dc:creator>&#8217;s blog &#187; links for 2007-06-01</dc:creator>
		<pubDate>Fri, 01 Jun 2007 10:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-867</guid>
		<description>[...] spotstory Â» Upgrading to Rails 1.2 (tags: rails) [...]</description>
		<content:encoded><![CDATA[<p>[...] spotstory Â» Upgrading to Rails 1.2 (tags: rails) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Googletron::new(&#8217;en&#8217;) &#187; Blog Archive &#187; User expected, got User?</title>
		<link>http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/comment-page-1/#comment-443</link>
		<dc:creator>Googletron::new(&#8217;en&#8217;) &#187; Blog Archive &#187; User expected, got User?</dc:creator>
		<pubDate>Tue, 08 May 2007 02:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.spotstory.com/2007/04/19/upgrading-to-rails-12/#comment-443</guid>
		<description>[...] By far one of the most annoying and unhelpful messages on Rails ever. the &#8220;User expected, got User&#8221; message tends to pop up now and then when using plugins such as acts_as_commentable or acts_as_taggable, that define models on the vendor/plugins. The solution, as pointed out by the localhost:3000 blog (nice blog name, I must say ;)), is moving any models that relate to models on your application to your own /models folder. The reason behind the problem is that the libs don&#8217;t get reloaded on each server request, whereas the models are (some thoughts on things that reload here). So theoretically, plugins that define models inside them are a bad bad practice. There&#8217;s another less intrusive way to make the plugins workm though: you can add the plugins on the &#8216;reloadable path&#8217;, as explained on spotstory: [...]</description>
		<content:encoded><![CDATA[<p>[...] By far one of the most annoying and unhelpful messages on Rails ever. the &#8220;User expected, got User&#8221; message tends to pop up now and then when using plugins such as acts_as_commentable or acts_as_taggable, that define models on the vendor/plugins. The solution, as pointed out by the localhost:3000 blog (nice blog name, I must say ;)), is moving any models that relate to models on your application to your own /models folder. The reason behind the problem is that the libs don&#8217;t get reloaded on each server request, whereas the models are (some thoughts on things that reload here). So theoretically, plugins that define models inside them are a bad bad practice. There&#8217;s another less intrusive way to make the plugins workm though: you can add the plugins on the &#8216;reloadable path&#8217;, as explained on spotstory: [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
