<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-13832</id>
	<title>Nabble - RubyOnRails Core</title>
	<updated>2009-11-29T12:45:04Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/RubyOnRails-Core-f13832.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/RubyOnRails-Core-f13832.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26565886</id>
	<title>Rails Contributors</title>
	<published>2009-11-29T12:45:04Z</published>
	<updated>2009-11-29T12:45:04Z</updated>
	<author>
		<name>Xavier Noria</name>
	</author>
	<content type="html">Hey just a brief mail to let you know I've done some systematic work
&lt;br&gt;on Rails Contributors in the past weeks: Tried to resolve every email
&lt;br&gt;address, and checked all handlers that exist as github usernames.
&lt;br&gt;&lt;br&gt;At this moment there are 337 email addresses and 440 handlers resolved
&lt;br&gt;(over time). Due to this pass the grand total of contributors has gone
&lt;br&gt;from 1420 down to 1327, because some of the resolved emails or github
&lt;br&gt;usernames corresponded to already existing full names.
&lt;br&gt;&lt;br&gt;Some email addresses are unreachable, and some github usernames belong
&lt;br&gt;to people who are not the authors of the corresponding commits. They
&lt;br&gt;are listed at the top of this file:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://github.com/fxn/rails-contributors/blob/master/app/models/names_manager.rb&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/fxn/rails-contributors/blob/master/app/models/names_manager.rb&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please if you recognize any of them just drop me a line!
&lt;br&gt;&lt;br&gt;The listing is converging after all these months, and I think we can
&lt;br&gt;already compute some meaningful-enough numbers/graphs, like new
&lt;br&gt;contributors per month, etc. I'd like to add them in the future.
&lt;br&gt;&lt;br&gt;That's it. Best regards to all!
&lt;br&gt;&lt;br&gt;-- fxn
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26565886&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26565886&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rails-Contributors-tp26565886p26565886.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524495</id>
	<title>Re: Re: ActionMailer with Mail gem - It is here</title>
	<published>2009-11-25T21:20:00Z</published>
	<updated>2009-11-25T21:20:00Z</updated>
	<author>
		<name>Mikel Lindsaar</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 11:15 PM, James H. &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524495&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;james.herdman@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Ask and ye shall receive. So, there are 10 failures on JRuby 1.4 and a&lt;br&gt;
TONNE a warnings. You can see the full output here: &lt;a href=&quot;http://gist.github.com/242667&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://gist.github.com/242667&lt;/a&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Thanks for the tests :)&lt;br&gt;&lt;br&gt;A lot of the warnings actually come from
the treetop parsers&amp;#39; auto generated ruby code.  I&amp;#39;ll be cleaning up as
much as I can over the coming weeks.&lt;br&gt;&lt;br&gt;The errors look fairly easy... most of them are probably test suite failures in terms of having these types of constructs:&lt;br&gt;&lt;br&gt;if RUBY_VERSION &amp;lt; &amp;#39;1.9&amp;#39;&lt;br&gt;  # force_encoding code&lt;br&gt;
else&lt;br&gt;  # don&amp;#39;t force encoding&lt;br&gt;end&lt;br&gt;&lt;br&gt;If you could form mail, and fix up those so they run in 1.9, 1.8 and jruby and do a pull request, I would be much obliged :) &lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

Do you know if Carlhuda is intending on making changes in the mailer&lt;br&gt;
department of Rails 3? I seem to recall Yehuda mentioning something to&lt;br&gt;
this effect at one point. If I recall correctly it was about treating&lt;br&gt;
mailers like controllers.&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;I
was talking to Yehuda about extracting actionmailer out to allow other
types of mailers, including things like IM clients etc. But from what I
know, it won&amp;#39;t make Rails 3.&lt;br&gt;
&lt;br&gt;
Mikel&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;-- &lt;br&gt;&lt;a href=&quot;http://lindsaar.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lindsaar.net/&lt;/a&gt;&lt;br&gt;Rails, RSpec and Life blog....&lt;br&gt;&lt;br&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524495&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524495&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26524495.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26513843</id>
	<title>Re: ActionMailer with Mail gem - It is here</title>
	<published>2009-11-25T06:43:14Z</published>
	<updated>2009-11-25T06:43:14Z</updated>
	<author>
		<name>matthewrudyjacobs@gmail.com</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On Nov 25, 12:15 pm, &amp;quot;James H.&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26513843&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;james.herd...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Ask and ye shall receive. So, there are 10 failures on JRuby 1.4 and a
&lt;br&gt;&amp;gt; TONNE a warnings. You can see the full output here:&lt;a href=&quot;http://gist.github.com/242667&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gist.github.com/242667&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;quite a few of those are mocha errors.
&lt;br&gt;&lt;br&gt;missing &amp;quot;expects&amp;quot;, &amp;quot;stubs&amp;quot; and such
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26513843&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26513843&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26513843.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26511674</id>
	<title>Re: ActionMailer with Mail gem - It is here</title>
	<published>2009-11-25T04:15:28Z</published>
	<updated>2009-11-25T04:15:28Z</updated>
	<author>
		<name>James Herdman</name>
	</author>
	<content type="html">Ask and ye shall receive. So, there are 10 failures on JRuby 1.4 and a
&lt;br&gt;TONNE a warnings. You can see the full output here: &lt;a href=&quot;http://gist.github.com/242667&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gist.github.com/242667&lt;/a&gt;&lt;br&gt;&lt;br&gt;Do you know if Carlhuda is intending on making changes in the mailer
&lt;br&gt;department of Rails 3? I seem to recall Yehuda mentioning something to
&lt;br&gt;this effect at one point. If I recall correctly it was about treating
&lt;br&gt;mailers like controllers.
&lt;br&gt;&lt;br&gt;James
&lt;br&gt;&lt;br&gt;On Nov 24, 11:50 pm, Mikel Lindsaar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511674&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;raasd...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 25/11/2009, at 3:00, Chad Woolley &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511674&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thewoolley...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Mon, Nov 23, 2009 at 4:29 PM, Mikel Lindsaar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511674&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;raasd...@...&lt;/a&gt;&amp;gt;  
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; So I just updated the mail gem to 1.3.0 and against my fork of  
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; actionmailer
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at github/mikel/rails, ActionMailer now passes all tests in MRI  
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 1.8.6, 1.8.7
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; and 1.9.1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Now how about JRuby? ;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Test it and let me know :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511674&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511674&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26511674.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26507539</id>
	<title>Re: ActionMailer with Mail gem - It is here</title>
	<published>2009-11-24T20:50:15Z</published>
	<updated>2009-11-24T20:50:15Z</updated>
	<author>
		<name>Mikel Lindsaar</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On 25/11/2009, at 3:00, Chad Woolley &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507539&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thewoolleyman@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; On Mon, Nov 23, 2009 at 4:29 PM, Mikel Lindsaar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507539&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;raasdnil@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; So I just updated the mail gem to 1.3.0 and against my fork of &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; actionmailer
&lt;br&gt;&amp;gt;&amp;gt; at github/mikel/rails, ActionMailer now passes all tests in MRI &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; 1.8.6, 1.8.7
&lt;br&gt;&amp;gt;&amp;gt; and 1.9.1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now how about JRuby? ;)
&lt;br&gt;&lt;br&gt;Test it and let me know :)
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507539&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507539&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26507539.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26498526</id>
	<title>Re: ActionMailer with Mail gem - It is here</title>
	<published>2009-11-24T08:00:06Z</published>
	<updated>2009-11-24T08:00:06Z</updated>
	<author>
		<name>Chad Woolley</name>
	</author>
	<content type="html">On Mon, Nov 23, 2009 at 4:29 PM, Mikel Lindsaar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498526&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;raasdnil@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; So I just updated the mail gem to 1.3.0 and against my fork of actionmailer
&lt;br&gt;&amp;gt; at github/mikel/rails, ActionMailer now passes all tests in MRI 1.8.6, 1.8.7
&lt;br&gt;&amp;gt; and 1.9.1
&lt;br&gt;&lt;br&gt;Now how about JRuby? ;)
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498526&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498526&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26498526.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26490234</id>
	<title>in_place_edit_for API page</title>
	<published>2009-11-23T20:12:22Z</published>
	<updated>2009-11-23T20:12:22Z</updated>
	<author>
		<name>Ryan Bigg-2</name>
	</author>
	<content type="html">Today I googled to see where in_place_edit_for wandered off to and I saw that the first result was this page: &lt;a href=&quot;http://api.rubyonrails.org/classes/ActionController/Macros/InPlaceEditing/ClassMethods.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://api.rubyonrails.org/classes/ActionController/Macros/InPlaceEditing/ClassMethods.html&lt;/a&gt; &lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;Since this doesn&amp;#39;t exist in Rails anymore, can we get it removed from the site? Otherwise, people may continue to think that this is still in Rails.&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Ryan Bigg&lt;br&gt;
&lt;/div&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26490234&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26490234&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/in_place_edit_for-API-page-tp26490234p26490234.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26488037</id>
	<title>Re: ActionMailer with Mail gem - It is here</title>
	<published>2009-11-23T15:29:51Z</published>
	<updated>2009-11-23T15:29:51Z</updated>
	<author>
		<name>Mikel Lindsaar</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 24, 2009 at 1:15 AM, Ken Collins &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26488037&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ken@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;div style=&quot;word-wrap:break-word&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;KUDOS! Hell yes!&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Heh, thanks.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;So I just updated the mail gem to 1.3.0 and against my fork of actionmailer at github/mikel/rails, ActionMailer now passes all tests in MRI 1.8.6, 1.8.7 and 1.9.1&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Mikel&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;/div&gt;-- &lt;br&gt;&lt;a href=&quot;http://lindsaar.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lindsaar.net/&lt;/a&gt;&lt;br&gt;Rails, RSpec and Life blog....&lt;br&gt;&lt;br&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26488037&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26488037&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26488037.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26507211</id>
	<title>Attribute option on Errors#full_messages</title>
	<published>2009-11-23T14:01:15Z</published>
	<updated>2009-11-23T14:01:15Z</updated>
	<author>
		<name>Glenn-66</name>
	</author>
	<content type="html">I want to be able to display full validation messages next to form
&lt;br&gt;elements. Currently I can only get validation errors without the
&lt;br&gt;prefix for specific fields, or I can get message for all attributes,
&lt;br&gt;at which point it's impossible to tell which message came from which
&lt;br&gt;attribute.
&lt;br&gt;&lt;br&gt;I made a patch where you can supply an attribute name to full_messages
&lt;br&gt;so that you can extract messages for particular fields, while
&lt;br&gt;preserving backwards compatibility.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://rails.lighthouseapp.com/projects/8994/tickets/3505-attribute-option-on-errorsfull_messages&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://rails.lighthouseapp.com/projects/8994/tickets/3505-attribute-option-on-errorsfull_messages&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Glenn
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507211&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507211&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Attribute-option-on-Errors-full_messages-tp26507211p26507211.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480739</id>
	<title>Re: Re: Queue Abstraction Layer</title>
	<published>2009-11-23T07:57:06Z</published>
	<updated>2009-11-23T07:57:06Z</updated>
	<author>
		<name>Marc Byrd</name>
	</author>
	<content type="html">Seems to me it&amp;#39;s analogous to caching from a service-oriented architecture pov - ActiveSupport::Queue like ActiveSupport::Cache ?  Interface/implements approach?  AMPQ-compliant interface?  Starling?  Also suggest that there may be different levels of the interface, starting with very simple transient push/pop all the way to full AMPQ.  &lt;br&gt;
&lt;br&gt;This would allow work around ActiveWorker to focus exclusively on worker challenges like polling, starvation, backoff, sleep, wake, deployment, running in context, etc.&lt;br&gt;&lt;br&gt;m&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Mon, Nov 23, 2009 at 7:40 AM, Amol Hatwar &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;amol@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Queues != Model. Josh, you are right indeed. +1 from me for AW &amp;amp; AQ :-)&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
Amol&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
On Nov 23, 2009, at 8:47 PM, Joshua Peek wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; Interesting ideas.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I think it be &amp;quot;ActionQueue&amp;quot; since its not a model layer (not sure).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Maybe both belong in the same &amp;quot;pack&amp;quot; similar to ActionPack.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; So we have some root package called &amp;quot;ActionBackgroundShit&amp;quot; and it&lt;br&gt;
&amp;gt; contains AW and AQ.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; actionbackgroundshit/lib/action_worker/*&lt;br&gt;
&amp;gt; actionbackgroundshit/lib/action_queue/*&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Mon, Nov 23, 2009 at 5:50 AM, mbiker &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andy.w.freeman@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt; +1&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I would love to see the related scheduled job be part of this as well&lt;br&gt;
&amp;gt;&amp;gt; since some processes can only have a single instance running at a&lt;br&gt;
&amp;gt;&amp;gt; time.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; On Nov 22, 7:57 pm, Anthony Eden &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;anthonye...@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; I want to take a moment to talk about the notion of a queue&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; abstraction layer in Rails and put a stake in the ground with my&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; opinions on the topic while at the same time getting some feedback.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; My understanding is this: at the moment ActiveWorker (which can be&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; seen in this repo:&lt;a href=&quot;http://github.com/joshbuddy/rails&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://github.com/joshbuddy/rails&lt;/a&gt;) is the current&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; track for how to integrate workers (and queues to an extent). There&amp;#39;s&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; nothing wrong with this approach, however my position is that workers&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; != queues, and I don&amp;#39;t necessarily want to define my workers in the&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; context of Rails, yet I do want an abstraction layer for queues. The&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; current design of ActiveWorker has the queues essentially as adapters,&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; similar to how ActiveRecord works, so I can understand leaving this as&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; part of ActiveWorker, but I do wonder if it&amp;#39;s a good idea to couple&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; these things together. Personally I don&amp;#39;t think it is but then again&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; others may disagree.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Here&amp;#39;s my proposal: there should be a queue abstraction layer (call it&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; ActiveQueue if you like) with the following high-level requirements:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; * It should provide a generic interface to queues (messages queues and&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; publish/subscribe)&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; * It should provide a standard interface for drivers to implement and&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; should provide a few basic driver implementations&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; * It should allow other drivers to be added in through simple&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; configuration (config/queue.yml)&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; * It should define an interface for serializing messages (and provide&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; JSON and XML serialization as the default?)&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; * It should NOT define how to handle work units (i.e. this is not for&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; defining asynchronous workers)&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; * It should be used under the hood by ActiveWorker&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; I actually have a need for this right now and would be willing to&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; implement it to scratch my own itch, but I didn&amp;#39;t want to do so&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; without first getting some feedback from the core community to see if&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; this is both interesting and useful.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Thoughts?&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Sincerely,&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Anthony Eden&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++**&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://anthony.mp&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://anthony.mp&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.&lt;br&gt;
&amp;gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br&gt;
&amp;gt;&amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
&amp;gt;&amp;gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Joshua Peek&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.&lt;br&gt;
&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br&gt;
&amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
&amp;gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480739&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Queue-Abstraction-Layer-tp26471321p26480739.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480385</id>
	<title>Re: Re: Queue Abstraction Layer</title>
	<published>2009-11-23T07:40:27Z</published>
	<updated>2009-11-23T07:40:27Z</updated>
	<author>
		<name>Amol Hatwar</name>
	</author>
	<content type="html">Queues != Model. Josh, you are right indeed. +1 from me for AW &amp; AQ :-)
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Amol
&lt;br&gt;&lt;br&gt;On Nov 23, 2009, at 8:47 PM, Joshua Peek wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Interesting ideas.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think it be &amp;quot;ActionQueue&amp;quot; since its not a model layer (not sure).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Maybe both belong in the same &amp;quot;pack&amp;quot; similar to ActionPack.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So we have some root package called &amp;quot;ActionBackgroundShit&amp;quot; and it
&lt;br&gt;&amp;gt; contains AW and AQ.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; actionbackgroundshit/lib/action_worker/*
&lt;br&gt;&amp;gt; actionbackgroundshit/lib/action_queue/*
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Mon, Nov 23, 2009 at 5:50 AM, mbiker &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480385&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andy.w.freeman@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; +1
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I would love to see the related scheduled job be part of this as well
&lt;br&gt;&amp;gt;&amp;gt; since some processes can only have a single instance running at a
&lt;br&gt;&amp;gt;&amp;gt; time.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; On Nov 22, 7:57 pm, Anthony Eden &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480385&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;anthonye...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I want to take a moment to talk about the notion of a queue
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; abstraction layer in Rails and put a stake in the ground with my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; opinions on the topic while at the same time getting some feedback.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; My understanding is this: at the moment ActiveWorker (which can be
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; seen in this repo:&lt;a href=&quot;http://github.com/joshbuddy/rails&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/joshbuddy/rails&lt;/a&gt;) is the current
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; track for how to integrate workers (and queues to an extent). There's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; nothing wrong with this approach, however my position is that workers
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; != queues, and I don't necessarily want to define my workers in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; context of Rails, yet I do want an abstraction layer for queues. The
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; current design of ActiveWorker has the queues essentially as adapters,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; similar to how ActiveRecord works, so I can understand leaving this as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; part of ActiveWorker, but I do wonder if it's a good idea to couple
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; these things together. Personally I don't think it is but then again
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; others may disagree.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Here's my proposal: there should be a queue abstraction layer (call it
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ActiveQueue if you like) with the following high-level requirements:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; * It should provide a generic interface to queues (messages queues and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; publish/subscribe)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; * It should provide a standard interface for drivers to implement and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; should provide a few basic driver implementations
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; * It should allow other drivers to be added in through simple
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; configuration (config/queue.yml)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; * It should define an interface for serializing messages (and provide
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; JSON and XML serialization as the default?)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; * It should NOT define how to handle work units (i.e. this is not for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; defining asynchronous workers)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; * It should be used under the hood by ActiveWorker
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I actually have a need for this right now and would be willing to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; implement it to scratch my own itch, but I didn't want to do so
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; without first getting some feedback from the core community to see if
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this is both interesting and useful.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thoughts?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sincerely,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Anthony Eden
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++**
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://anthony.mp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://anthony.mp&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;&amp;gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480385&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480385&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;&amp;gt;&amp;gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Joshua Peek
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480385&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480385&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480385&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480385&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Queue-Abstraction-Layer-tp26471321p26480385.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26479922</id>
	<title>Re: Re: Queue Abstraction Layer</title>
	<published>2009-11-23T07:17:22Z</published>
	<updated>2009-11-23T07:17:22Z</updated>
	<author>
		<name>Joshua Peek</name>
	</author>
	<content type="html">Interesting ideas.
&lt;br&gt;&lt;br&gt;I think it be &amp;quot;ActionQueue&amp;quot; since its not a model layer (not sure).
&lt;br&gt;&lt;br&gt;Maybe both belong in the same &amp;quot;pack&amp;quot; similar to ActionPack.
&lt;br&gt;&lt;br&gt;So we have some root package called &amp;quot;ActionBackgroundShit&amp;quot; and it
&lt;br&gt;contains AW and AQ.
&lt;br&gt;&lt;br&gt;actionbackgroundshit/lib/action_worker/*
&lt;br&gt;actionbackgroundshit/lib/action_queue/*
&lt;br&gt;&lt;br&gt;On Mon, Nov 23, 2009 at 5:50 AM, mbiker &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26479922&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andy.w.freeman@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; +1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would love to see the related scheduled job be part of this as well
&lt;br&gt;&amp;gt; since some processes can only have a single instance running at a
&lt;br&gt;&amp;gt; time.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 22, 7:57 pm, Anthony Eden &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26479922&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;anthonye...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; I want to take a moment to talk about the notion of a queue
&lt;br&gt;&amp;gt;&amp;gt; abstraction layer in Rails and put a stake in the ground with my
&lt;br&gt;&amp;gt;&amp;gt; opinions on the topic while at the same time getting some feedback.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My understanding is this: at the moment ActiveWorker (which can be
&lt;br&gt;&amp;gt;&amp;gt; seen in this repo:&lt;a href=&quot;http://github.com/joshbuddy/rails&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/joshbuddy/rails&lt;/a&gt;) is the current
&lt;br&gt;&amp;gt;&amp;gt; track for how to integrate workers (and queues to an extent). There's
&lt;br&gt;&amp;gt;&amp;gt; nothing wrong with this approach, however my position is that workers
&lt;br&gt;&amp;gt;&amp;gt; != queues, and I don't necessarily want to define my workers in the
&lt;br&gt;&amp;gt;&amp;gt; context of Rails, yet I do want an abstraction layer for queues. The
&lt;br&gt;&amp;gt;&amp;gt; current design of ActiveWorker has the queues essentially as adapters,
&lt;br&gt;&amp;gt;&amp;gt; similar to how ActiveRecord works, so I can understand leaving this as
&lt;br&gt;&amp;gt;&amp;gt; part of ActiveWorker, but I do wonder if it's a good idea to couple
&lt;br&gt;&amp;gt;&amp;gt; these things together. Personally I don't think it is but then again
&lt;br&gt;&amp;gt;&amp;gt; others may disagree.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Here's my proposal: there should be a queue abstraction layer (call it
&lt;br&gt;&amp;gt;&amp;gt; ActiveQueue if you like) with the following high-level requirements:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; * It should provide a generic interface to queues (messages queues and
&lt;br&gt;&amp;gt;&amp;gt; publish/subscribe)
&lt;br&gt;&amp;gt;&amp;gt; * It should provide a standard interface for drivers to implement and
&lt;br&gt;&amp;gt;&amp;gt; should provide a few basic driver implementations
&lt;br&gt;&amp;gt;&amp;gt; * It should allow other drivers to be added in through simple
&lt;br&gt;&amp;gt;&amp;gt; configuration (config/queue.yml)
&lt;br&gt;&amp;gt;&amp;gt; * It should define an interface for serializing messages (and provide
&lt;br&gt;&amp;gt;&amp;gt; JSON and XML serialization as the default?)
&lt;br&gt;&amp;gt;&amp;gt; * It should NOT define how to handle work units (i.e. this is not for
&lt;br&gt;&amp;gt;&amp;gt; defining asynchronous workers)
&lt;br&gt;&amp;gt;&amp;gt; * It should be used under the hood by ActiveWorker
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I actually have a need for this right now and would be willing to
&lt;br&gt;&amp;gt;&amp;gt; implement it to scratch my own itch, but I didn't want to do so
&lt;br&gt;&amp;gt;&amp;gt; without first getting some feedback from the core community to see if
&lt;br&gt;&amp;gt;&amp;gt; this is both interesting and useful.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thoughts?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sincerely,
&lt;br&gt;&amp;gt;&amp;gt; Anthony Eden
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O
&lt;br&gt;&amp;gt;&amp;gt; M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++**
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://anthony.mp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://anthony.mp&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26479922&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26479922&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Joshua Peek
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26479922&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26479922&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Queue-Abstraction-Layer-tp26471321p26479922.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26478833</id>
	<title>Re: ActionMailer with Mail gem - It is here</title>
	<published>2009-11-23T06:15:49Z</published>
	<updated>2009-11-23T06:15:49Z</updated>
	<author>
		<name>Ken Collins</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;KUDOS! Hell yes!&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- Ken&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On Nov 23, 2009, at 12:11 AM, Mikel Lindsaar wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;On Mon, Nov 23, 2009 at 10:17 AM, Chad Woolley &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478833&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thewoolleyman@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;On Sun, Nov 22, 2009 at 5:48 AM, Mikel Lindsaar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478833&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;raasdnil@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; So, I have integrated edge ActionMailer with the Mail gem, removing TMail in&lt;br&gt;
&amp;gt; the process.&lt;br&gt;
&amp;gt; Currently, ActionMailer is running with&amp;nbsp;131 tests, 309 assertions, 0&lt;br&gt;
&amp;gt; failures, 0 errors&lt;br&gt;
&amp;gt; This is using ActionMailer from &lt;a href=&quot;http://github.com/mikel/rails&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://github.com/mikel/rails&lt;/a&gt; as well as the&lt;br&gt;
&amp;gt; Mail gem version 1.2.8&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Which interpreters?&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Mail will run on Ruby 1.8.6, 1.8.7 and 1.9.1 with no spec failures&lt;br&gt;&lt;br&gt;My ActionMailer fork with Mail runs without error on 1.8.7.&lt;br&gt;&lt;br&gt;Currently we have a few failures for ActionMailer + Mail on 1.9.1, but they will be fixed soon, no big deal.&lt;br&gt;
&lt;br&gt;Mikel&lt;br&gt;&amp;nbsp;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;br class=&quot;webkit-block-placeholder&quot;&gt;&lt;/div&gt;&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478833&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478833&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br&gt;

For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.&lt;br&gt;

&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478833&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478833&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26478833.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26476671</id>
	<title>Re: Queue Abstraction Layer</title>
	<published>2009-11-23T03:50:31Z</published>
	<updated>2009-11-23T03:50:31Z</updated>
	<author>
		<name>mbiker-2</name>
	</author>
	<content type="html">+1
&lt;br&gt;&lt;br&gt;I would love to see the related scheduled job be part of this as well
&lt;br&gt;since some processes can only have a single instance running at a
&lt;br&gt;time.
&lt;br&gt;&lt;br&gt;On Nov 22, 7:57 pm, Anthony Eden &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476671&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;anthonye...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I want to take a moment to talk about the notion of a queue
&lt;br&gt;&amp;gt; abstraction layer in Rails and put a stake in the ground with my
&lt;br&gt;&amp;gt; opinions on the topic while at the same time getting some feedback.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My understanding is this: at the moment ActiveWorker (which can be
&lt;br&gt;&amp;gt; seen in this repo:&lt;a href=&quot;http://github.com/joshbuddy/rails&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/joshbuddy/rails&lt;/a&gt;) is the current
&lt;br&gt;&amp;gt; track for how to integrate workers (and queues to an extent). There's
&lt;br&gt;&amp;gt; nothing wrong with this approach, however my position is that workers
&lt;br&gt;&amp;gt; != queues, and I don't necessarily want to define my workers in the
&lt;br&gt;&amp;gt; context of Rails, yet I do want an abstraction layer for queues. The
&lt;br&gt;&amp;gt; current design of ActiveWorker has the queues essentially as adapters,
&lt;br&gt;&amp;gt; similar to how ActiveRecord works, so I can understand leaving this as
&lt;br&gt;&amp;gt; part of ActiveWorker, but I do wonder if it's a good idea to couple
&lt;br&gt;&amp;gt; these things together. Personally I don't think it is but then again
&lt;br&gt;&amp;gt; others may disagree.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's my proposal: there should be a queue abstraction layer (call it
&lt;br&gt;&amp;gt; ActiveQueue if you like) with the following high-level requirements:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * It should provide a generic interface to queues (messages queues and
&lt;br&gt;&amp;gt; publish/subscribe)
&lt;br&gt;&amp;gt; * It should provide a standard interface for drivers to implement and
&lt;br&gt;&amp;gt; should provide a few basic driver implementations
&lt;br&gt;&amp;gt; * It should allow other drivers to be added in through simple
&lt;br&gt;&amp;gt; configuration (config/queue.yml)
&lt;br&gt;&amp;gt; * It should define an interface for serializing messages (and provide
&lt;br&gt;&amp;gt; JSON and XML serialization as the default?)
&lt;br&gt;&amp;gt; * It should NOT define how to handle work units (i.e. this is not for
&lt;br&gt;&amp;gt; defining asynchronous workers)
&lt;br&gt;&amp;gt; * It should be used under the hood by ActiveWorker
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I actually have a need for this right now and would be willing to
&lt;br&gt;&amp;gt; implement it to scratch my own itch, but I didn't want to do so
&lt;br&gt;&amp;gt; without first getting some feedback from the core community to see if
&lt;br&gt;&amp;gt; this is both interesting and useful.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thoughts?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sincerely,
&lt;br&gt;&amp;gt; Anthony Eden
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O
&lt;br&gt;&amp;gt; M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++**
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://anthony.mp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://anthony.mp&lt;/a&gt;&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476671&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26476671&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Queue-Abstraction-Layer-tp26471321p26476671.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473602</id>
	<title>Re: Queue Abstraction Layer</title>
	<published>2009-11-22T23:17:37Z</published>
	<updated>2009-11-22T23:17:37Z</updated>
	<author>
		<name>Paul Campbell-13</name>
	</author>
	<content type="html">+1 on the concept ... I feel that Rails has been without this for a
&lt;br&gt;while. With the recent surge of activity on queue services, I think
&lt;br&gt;this is an awesome suggestion ... it would be great to have a standard
&lt;br&gt;Rails-ish way of setting up multiple work queues.
&lt;br&gt;&lt;br&gt;I think that a good starting point for where to look for inspiration
&lt;br&gt;is &lt;a href=&quot;http://github.com/defunkt/resque#readme&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/defunkt/resque#readme&lt;/a&gt;&amp;nbsp;... which has a ton of
&lt;br&gt;really good design choices.
&lt;br&gt;&lt;br&gt;If there was a common interface to queues such as Resque that could be
&lt;br&gt;abstracted in front of any choice of queue backend, I feel like it
&lt;br&gt;would be a huge win for Rails.
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;On Sun, Nov 22, 2009 at 4:57 PM, Anthony Eden &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473602&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;anthonyeden@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I want to take a moment to talk about the notion of a queue
&lt;br&gt;&amp;gt; abstraction layer in Rails and put a stake in the ground with my
&lt;br&gt;&amp;gt; opinions on the topic while at the same time getting some feedback.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My understanding is this: at the moment ActiveWorker (which can be
&lt;br&gt;&amp;gt; seen in this repo: &lt;a href=&quot;http://github.com/joshbuddy/rails&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/joshbuddy/rails&lt;/a&gt;&amp;nbsp;) is the current
&lt;br&gt;&amp;gt; track for how to integrate workers (and queues to an extent). There's
&lt;br&gt;&amp;gt; nothing wrong with this approach, however my position is that workers
&lt;br&gt;&amp;gt; != queues, and I don't necessarily want to define my workers in the
&lt;br&gt;&amp;gt; context of Rails, yet I do want an abstraction layer for queues. The
&lt;br&gt;&amp;gt; current design of ActiveWorker has the queues essentially as adapters,
&lt;br&gt;&amp;gt; similar to how ActiveRecord works, so I can understand leaving this as
&lt;br&gt;&amp;gt; part of ActiveWorker, but I do wonder if it's a good idea to couple
&lt;br&gt;&amp;gt; these things together. Personally I don't think it is but then again
&lt;br&gt;&amp;gt; others may disagree.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's my proposal: there should be a queue abstraction layer (call it
&lt;br&gt;&amp;gt; ActiveQueue if you like) with the following high-level requirements:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; * It should provide a generic interface to queues (messages queues and
&lt;br&gt;&amp;gt; publish/subscribe)
&lt;br&gt;&amp;gt; * It should provide a standard interface for drivers to implement and
&lt;br&gt;&amp;gt; should provide a few basic driver implementations
&lt;br&gt;&amp;gt; * It should allow other drivers to be added in through simple
&lt;br&gt;&amp;gt; configuration (config/queue.yml)
&lt;br&gt;&amp;gt; * It should define an interface for serializing messages (and provide
&lt;br&gt;&amp;gt; JSON and XML serialization as the default?)
&lt;br&gt;&amp;gt; * It should NOT define how to handle work units (i.e. this is not for
&lt;br&gt;&amp;gt; defining asynchronous workers)
&lt;br&gt;&amp;gt; * It should be used under the hood by ActiveWorker
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I actually have a need for this right now and would be willing to
&lt;br&gt;&amp;gt; implement it to scratch my own itch, but I didn't want to do so
&lt;br&gt;&amp;gt; without first getting some feedback from the core community to see if
&lt;br&gt;&amp;gt; this is both interesting and useful.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thoughts?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sincerely,
&lt;br&gt;&amp;gt; Anthony Eden
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O
&lt;br&gt;&amp;gt; M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++**
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://anthony.mp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://anthony.mp&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473602&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473602&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Paul Campbell
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473602&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;paul@...&lt;/a&gt;
&lt;br&gt;- - - - - - - - - - - - - - - - - - -
&lt;br&gt;blog &lt;a href=&quot;http://www.pabcas.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pabcas.com&lt;/a&gt;&lt;br&gt;twitter &lt;a href=&quot;http://www.twitter.com/paulca&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.twitter.com/paulca&lt;/a&gt;&lt;br&gt;github &lt;a href=&quot;http://www.github.com/paulca&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.github.com/paulca&lt;/a&gt;&lt;br&gt;phone +353 87 914 8162
&lt;br&gt;- - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473602&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473602&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Queue-Abstraction-Layer-tp26471321p26473602.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26472919</id>
	<title>Re: ActionMailer with Mail gem - It is here</title>
	<published>2009-11-22T21:11:50Z</published>
	<updated>2009-11-22T21:11:50Z</updated>
	<author>
		<name>Mikel Lindsaar</name>
	</author>
	<content type="html">On Mon, Nov 23, 2009 at 10:17 AM, Chad Woolley &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472919&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thewoolleyman@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;On Sun, Nov 22, 2009 at 5:48 AM, Mikel Lindsaar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472919&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;raasdnil@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; So, I have integrated edge ActionMailer with the Mail gem, removing TMail in&lt;br&gt;
&amp;gt; the process.&lt;br&gt;
&amp;gt; Currently, ActionMailer is running with 131 tests, 309 assertions, 0&lt;br&gt;
&amp;gt; failures, 0 errors&lt;br&gt;
&amp;gt; This is using ActionMailer from &lt;a href=&quot;http://github.com/mikel/rails&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://github.com/mikel/rails&lt;/a&gt; as well as the&lt;br&gt;
&amp;gt; Mail gem version 1.2.8&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Which interpreters?&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Mail will run on Ruby 1.8.6, 1.8.7 and 1.9.1 with no spec failures&lt;br&gt;&lt;br&gt;My ActionMailer fork with Mail runs without error on 1.8.7.&lt;br&gt;&lt;br&gt;Currently we have a few failures for ActionMailer + Mail on 1.9.1, but they will be fixed soon, no big deal.&lt;br&gt;
&lt;br&gt;Mikel&lt;br&gt; &lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472919&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26472919&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26472919.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471321</id>
	<title>Queue Abstraction Layer</title>
	<published>2009-11-22T16:57:17Z</published>
	<updated>2009-11-22T16:57:17Z</updated>
	<author>
		<name>Anthony Eden</name>
	</author>
	<content type="html">I want to take a moment to talk about the notion of a queue
&lt;br&gt;abstraction layer in Rails and put a stake in the ground with my
&lt;br&gt;opinions on the topic while at the same time getting some feedback.
&lt;br&gt;&lt;br&gt;My understanding is this: at the moment ActiveWorker (which can be
&lt;br&gt;seen in this repo: &lt;a href=&quot;http://github.com/joshbuddy/rails&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/joshbuddy/rails&lt;/a&gt;&amp;nbsp;) is the current
&lt;br&gt;track for how to integrate workers (and queues to an extent). There's
&lt;br&gt;nothing wrong with this approach, however my position is that workers
&lt;br&gt;!= queues, and I don't necessarily want to define my workers in the
&lt;br&gt;context of Rails, yet I do want an abstraction layer for queues. The
&lt;br&gt;current design of ActiveWorker has the queues essentially as adapters,
&lt;br&gt;similar to how ActiveRecord works, so I can understand leaving this as
&lt;br&gt;part of ActiveWorker, but I do wonder if it's a good idea to couple
&lt;br&gt;these things together. Personally I don't think it is but then again
&lt;br&gt;others may disagree.
&lt;br&gt;&lt;br&gt;Here's my proposal: there should be a queue abstraction layer (call it
&lt;br&gt;ActiveQueue if you like) with the following high-level requirements:
&lt;br&gt;&lt;br&gt;* It should provide a generic interface to queues (messages queues and
&lt;br&gt;publish/subscribe)
&lt;br&gt;* It should provide a standard interface for drivers to implement and
&lt;br&gt;should provide a few basic driver implementations
&lt;br&gt;* It should allow other drivers to be added in through simple
&lt;br&gt;configuration (config/queue.yml)
&lt;br&gt;* It should define an interface for serializing messages (and provide
&lt;br&gt;JSON and XML serialization as the default?)
&lt;br&gt;* It should NOT define how to handle work units (i.e. this is not for
&lt;br&gt;defining asynchronous workers)
&lt;br&gt;* It should be used under the hood by ActiveWorker
&lt;br&gt;&lt;br&gt;I actually have a need for this right now and would be willing to
&lt;br&gt;implement it to scratch my own itch, but I didn't want to do so
&lt;br&gt;without first getting some feedback from the core community to see if
&lt;br&gt;this is both interesting and useful.
&lt;br&gt;&lt;br&gt;Thoughts?
&lt;br&gt;&lt;br&gt;Sincerely,
&lt;br&gt;Anthony Eden
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O
&lt;br&gt;M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++**
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://anthony.mp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://anthony.mp&lt;/a&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471321&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471321&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Queue-Abstraction-Layer-tp26471321p26471321.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26470662</id>
	<title>Re: ActionMailer with Mail gem - It is here</title>
	<published>2009-11-22T15:17:37Z</published>
	<updated>2009-11-22T15:17:37Z</updated>
	<author>
		<name>Chad Woolley</name>
	</author>
	<content type="html">On Sun, Nov 22, 2009 at 5:48 AM, Mikel Lindsaar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470662&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;raasdnil@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; So, I have integrated edge ActionMailer with the Mail gem, removing TMail in
&lt;br&gt;&amp;gt; the process.
&lt;br&gt;&amp;gt; Currently, ActionMailer is running with 131 tests, 309 assertions, 0
&lt;br&gt;&amp;gt; failures, 0 errors
&lt;br&gt;&amp;gt; This is using ActionMailer from &lt;a href=&quot;http://github.com/mikel/rails&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/mikel/rails&lt;/a&gt;&amp;nbsp;as well as the
&lt;br&gt;&amp;gt; Mail gem version 1.2.8
&lt;br&gt;&lt;br&gt;Which interpreters?
&lt;br&gt;&lt;br&gt;-- Chad
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470662&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26470662&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26470662.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26465016</id>
	<title>ActionMailer with Mail gem - It is here</title>
	<published>2009-11-22T04:48:32Z</published>
	<updated>2009-11-22T04:48:32Z</updated>
	<author>
		<name>Mikel Lindsaar</name>
	</author>
	<content type="html">So, I have integrated edge ActionMailer with the Mail gem, removing TMail in the process.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Currently, ActionMailer is running with 131 tests, 309 assertions, 0 failures, 0 errors&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;
&lt;div&gt;This is using ActionMailer from &lt;a href=&quot;http://github.com/mikel/rails&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/mikel/rails&lt;/a&gt; as well as the Mail gem version 1.2.8&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;But mail is throwing a few warnings in the process and I would love more eyes on it.  I&amp;#39;ve done it up to here, but now I need some sanity checks :)&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;To replicate:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;sudo gem install mail&lt;/div&gt;&lt;div&gt;( should install at least Mail 1.2.8 )&lt;/div&gt;&lt;div&gt;git clone git://&lt;a href=&quot;http://github.com/mikel/rails.git&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;github.com/mikel/rails.git&lt;/a&gt; &lt;/div&gt;
&lt;div&gt;cd rails/actionmailer&lt;/div&gt;&lt;div&gt;rake test&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;You should get 0 errors, 0 failures.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Please let me know what you get and patches welcome!!!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;-- &lt;br&gt;&lt;a href=&quot;http://lindsaar.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lindsaar.net/&lt;/a&gt;&lt;br&gt;
Rails, RSpec and Life blog....&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465016&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26465016&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionMailer-with-Mail-gem---It-is-here-tp26465016p26465016.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26507214</id>
	<title>[PATCH] Autolinking non-http protocols doesn't work</title>
	<published>2009-11-20T11:18:40Z</published>
	<updated>2009-11-20T11:18:40Z</updated>
	<author>
		<name>Zach Brock</name>
	</author>
	<content type="html">&lt;p&gt;If you redefined the AUTO_LINK_RE to support protocols other
than HTTP, bad links are generated. In the auto_link_urls code it
checks if there is an http in the generated href and if there isn&amp;#39;t
it prepends one. If you&amp;#39;re using auto_link_urls on, for example,
ftp:// links, instead of &amp;lt;a
href=&amp;quot;&lt;a href=&quot;ftp://example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ftp://example.com&lt;/a&gt;&amp;quot;&amp;gt;&lt;a href=&quot;ftp://example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ftp://example.com&lt;/a&gt;&amp;lt;/a&amp;gt; , you get
&amp;lt;a href=&amp;quot;http://
&lt;a href=&quot;ftp://example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ftp://example.com&lt;/a&gt;&amp;quot;&amp;gt;&lt;a href=&quot;ftp://example.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ftp://example.com&lt;/a&gt;&amp;lt;/a&amp;gt;. This patch adds
a test and changes the code to check for any protocol instead of
just http before prepending the default.&lt;/p&gt;
&lt;p&gt;This patch is against the 2-3-stable branch.&lt;/p&gt;Lighthouse ticket: &lt;a href=&quot;https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3494-patch-autolinking-non-http-protocols-doesnt-work&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3494-patch-autolinking-non-http-protocols-doesnt-work&lt;/a&gt;&lt;br&gt;
&lt;br&gt;-Zach Brock&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507214&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507214&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--Autolinking-non-http-protocols-doesn%27t-work-tp26507214p26507214.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26420276</id>
	<title>Re: Dirty Associations</title>
	<published>2009-11-18T20:30:31Z</published>
	<updated>2009-11-18T20:30:31Z</updated>
	<author>
		<name>Matt Jones</name>
	</author>
	<content type="html">Poking around a little, it's completely an implementation side-effect, &amp;nbsp;
&lt;br&gt;and only appears in the exact case you've described. For instance, &amp;nbsp;
&lt;br&gt;assigning to a has_many doesn't show up in .changes either:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;def test_changed_includes_new_record_assignments
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;album = Album.create! :title =&amp;gt; &amp;quot;Give Up the Ghost&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;album.artist = Artist.new :name =&amp;gt; &amp;quot;Brandi Carlile&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;assert album.changes.any?
&lt;br&gt;&amp;nbsp; &amp;nbsp;end
&lt;br&gt;&lt;br&gt;In the belongs_to case in your example, note that the change does get &amp;nbsp;
&lt;br&gt;recorded fairly early (before the before_save callback is invoked), so &amp;nbsp;
&lt;br&gt;you're OK using the dirty tracking in callbacks / observers.
&lt;br&gt;&lt;br&gt;--Matt Jones
&lt;br&gt;&lt;br&gt;On Nov 18, 2009, at 4:47 PM, Chris O'Meara wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I found an area where I don't totally understand the behavior of the &amp;nbsp;
&lt;br&gt;&amp;gt; dirty tracking feature in Active Record. It appears as though &amp;nbsp;
&lt;br&gt;&amp;gt; changes are tracked when I assign a persistent object (already has &amp;nbsp;
&lt;br&gt;&amp;gt; an id) to the association but not tracked when I assign a new record &amp;nbsp;
&lt;br&gt;&amp;gt; to the association.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here's a test that highlights the difference:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://gist.github.com/238283&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gist.github.com/238283&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is the difference between the two usages intentional?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Chris
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google &amp;nbsp;
&lt;br&gt;&amp;gt; Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to rubyonrails- 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420276&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;core@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420276&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; .
&lt;br&gt;&amp;gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; .
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420276&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420276&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dirty-Associations-tp26419664p26420276.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26419827</id>
	<title>Re: Dirty Associations</title>
	<published>2009-11-18T19:25:53Z</published>
	<updated>2009-11-18T19:25:53Z</updated>
	<author>
		<name>Michael Koziarski</name>
	</author>
	<content type="html">&amp;gt; Is the difference between the two usages intentional?
&lt;br&gt;&lt;br&gt;Nope, looks like a side-effect of the implementation to me.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Cheers
&lt;br&gt;&lt;br&gt;Koz
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419827&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419827&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dirty-Associations-tp26419664p26419827.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26419818</id>
	<title>Re: AR Association Proxy prevents calling methods  defined using method_missing on the target of the association</title>
	<published>2009-11-18T19:24:39Z</published>
	<updated>2009-11-18T19:24:39Z</updated>
	<author>
		<name>Michael Koziarski</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; If I have a model like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class User &amp;lt; ActiveRecord::Base
&lt;br&gt;&amp;gt; # Provide is_admin?, is_guest? account type discovery methods def
&lt;br&gt;&amp;gt; method_missing(method_id, *arguments)
&lt;br&gt;&amp;gt; if match = /^is_(\w+)\?$/.match(method_id.to_s)
&lt;br&gt;&amp;gt;  self.account_type == match[1]
&lt;br&gt;&amp;gt; else
&lt;br&gt;&amp;gt;  super
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; end end
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;If you override method_missing, you need to also override respond_to?
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can't do Activity.first.user.is_guest? because it raises a
&lt;br&gt;&amp;gt; NoMethodError. The problem is that the Association Proxy only allows
&lt;br&gt;&amp;gt; calling methods on the target that respond_to?(method). It doesn't
&lt;br&gt;&amp;gt; need to do this check, because if the method really doesn't exist, the
&lt;br&gt;&amp;gt; call to target.send(method, args) will raise NoMethodError itself, so
&lt;br&gt;&amp;gt; nothing is gained by doing that check in the proxy.
&lt;br&gt;&lt;br&gt;This is not quite right. &amp;nbsp;send will also call private methods, the
&lt;br&gt;proxy check prevents that.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Karl
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419818&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419818&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Cheers
&lt;br&gt;&lt;br&gt;Koz
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419818&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419818&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AR-Association-Proxy-prevents-calling-methods-defined--using-method_missing-on-the-target-of-the-association-tp26419665p26419818.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26419758</id>
	<title>Re: Decrypt a admin password (with salt)</title>
	<published>2009-11-18T19:15:20Z</published>
	<updated>2009-11-18T19:15:20Z</updated>
	<author>
		<name>Matt Jones</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 9, 2009, at 5:48 AM, madhuri godade wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want decrypt a password which is encrypted by MD5.
&lt;br&gt;&amp;gt; there are 4 functions which i am using :
&lt;br&gt;&lt;br&gt;[snip]
&lt;br&gt;&lt;br&gt;&amp;gt; please do tell me...
&lt;br&gt;&lt;br&gt;OK. First, it's not possible. The only reason you'd want to do this if &amp;nbsp;
&lt;br&gt;you have access to the DB is if you're a hacker.
&lt;br&gt;&lt;br&gt;Second, this isn't a list for this kind of question - that's what &amp;nbsp;
&lt;br&gt;rails-talk is for.
&lt;br&gt;&lt;br&gt;--Matt Jones
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419758&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419758&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Decrypt-a-admin-password-%28with-salt%29-tp26419666p26419758.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26419737</id>
	<title>Re: Decrypt a admin password (with salt)</title>
	<published>2009-11-18T19:12:34Z</published>
	<updated>2009-11-18T19:12:34Z</updated>
	<author>
		<name>Amol Hatwar</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 9, 2009, at 4:18 PM, madhuri godade wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I want decrypt a password which is encrypted by MD5.
&lt;br&gt;&amp;gt; there are 4 functions which i am using :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # Encrypts some data with the salt.
&lt;br&gt;&amp;gt; &amp;nbsp;def self.encrypt(password, salt)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Digest::SHA1.hexdigest(&amp;quot;--#{salt}--#{password}--&amp;quot;)
&lt;br&gt;&amp;gt; &amp;nbsp;end
&lt;br&gt;&lt;br&gt;* Chop *
&lt;br&gt;&lt;br&gt;Madhuri, this is list is called &amp;quot;Rails Core&amp;quot;, meaning code, problems and issues
&lt;br&gt;relating to Rails code itself. Perhaps, you should try some other lists for your code
&lt;br&gt;which is unrelated to Rails itself in the future.
&lt;br&gt;&lt;br&gt;In any case, MD5 is a hashing algorithm and a one-way function. Meaning, once
&lt;br&gt;you get a hash, there is no way to get the original data back.
&lt;br&gt;&lt;br&gt;Also, in the code snippets that you gave, you are using SHA1: which is completely
&lt;br&gt;different from MD5.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Amol Hatwar 
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419737&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419737&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Decrypt-a-admin-password-%28with-salt%29-tp26419666p26419737.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26419664</id>
	<title>Dirty Associations</title>
	<published>2009-11-18T13:47:21Z</published>
	<updated>2009-11-18T13:47:21Z</updated>
	<author>
		<name>Chris O'Meara-2</name>
	</author>
	<content type="html">Hello,&lt;br&gt;&lt;br&gt;I found an area where I don&amp;#39;t totally understand the behavior of the dirty tracking feature in Active Record. It appears as though changes are tracked when I assign a persistent object (already has an id) to the association but not tracked when I assign a new record to the association.&lt;br&gt;
&lt;br&gt;Here&amp;#39;s a test that highlights the difference:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://gist.github.com/238283&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gist.github.com/238283&lt;/a&gt;&lt;br&gt;&lt;br&gt;Is the difference between the two usages intentional?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Chris&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Core&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419664&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419664&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dirty-Associations-tp26419664p26419664.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26413605</id>
	<title>Rubyconf 2009 ticket for sale</title>
	<published>2009-11-18T10:56:38Z</published>
	<updated>2009-11-18T10:56:38Z</updated>
	<author>
		<name>Ajaya Agrawalla-2</name>
	</author>
	<content type="html">Gotta bail due to family issues. &amp;nbsp;Want my ticket?
&lt;br&gt;&lt;br&gt;ajaya
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26413605&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26413605&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rubyconf-2009-ticket-for-sale-tp26413605p26413605.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26403045</id>
	<title>Re: Preserving has_many :through ids assignment order</title>
	<published>2009-11-17T22:07:29Z</published>
	<updated>2009-11-17T22:07:29Z</updated>
	<author>
		<name>dasil003-2</name>
	</author>
	<content type="html">Well, disturbingly my in-depth response I posted 12 hours ago has
&lt;br&gt;seemingly vanished into thin air. &amp;nbsp;I won't repeat the whole thing.
&lt;br&gt;Essentially, my response was that, no Rick, I definitely want the
&lt;br&gt;routes ordered by primary key, and depending on that order GREATLY
&lt;br&gt;simplifies both my controller and my module (see &lt;a href=&quot;http://www.theauteurs.com/lists&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.theauteurs.com/lists&lt;/a&gt;&lt;br&gt;for an example). &amp;nbsp;Acts_as_list is tremendous overkill in most
&lt;br&gt;situations. &amp;nbsp;Depending on insertion order simplifies a great many
&lt;br&gt;things. &amp;nbsp;With regards to ordering routes you can do so entirely at the
&lt;br&gt;client level with something like Prototype's Sortable, and the
&lt;br&gt;controller doesn't need to be aware of routes at all, it can use
&lt;br&gt;purely desination ids which makes the resulting code extremely clean.
&lt;br&gt;&lt;br&gt;My patch is up on lighthouse, could use some reviewers:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://rails.lighthouseapp.com/projects/8994/tickets/3491-assigning-to-has_many-through-using-the-generated-_ids-method-does-not-insert-in-the-same-order&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://rails.lighthouseapp.com/projects/8994/tickets/3491-assigning-to-has_many-through-using-the-generated-_ids-method-does-not-insert-in-the-same-order&lt;/a&gt;&lt;br&gt;&lt;br&gt;On Nov 14, 8:50 am, Rick DeNatale &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26403045&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rick.denat...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; It seem to me that ordering on id isn't what you really want here.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What happens when you add the function to reorder the routes?  If it
&lt;br&gt;&amp;gt; were me I'd probably do something like adding a position attribute to
&lt;br&gt;&amp;gt; route and use something like acts_as_list
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26403045&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26403045&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preserving-has_many-%3Athrough-ids-assignment-order-tp26293117p26403045.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26351728</id>
	<title>Re: Preserving has_many :through ids assignment  order</title>
	<published>2009-11-14T08:50:58Z</published>
	<updated>2009-11-14T08:50:58Z</updated>
	<author>
		<name>Rick DeNatale</name>
	</author>
	<content type="html">&lt;br&gt;On Thu, Nov 12, 2009 at 1:59 PM, dasil003 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26351728&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gabriel.d@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 12, 10:38 am, Matt Jones &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26351728&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;al2o...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For this to make sense as a Rails patch, there's got to be a reason
&lt;br&gt;&amp;gt;&amp;gt; why this ordering should be preserved. What's the difference between
&lt;br&gt;&amp;gt;&amp;gt; adding the records in the [5,8,3] order vs. some other order?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The reason is because when you assign directly to a has_many :through,
&lt;br&gt;&amp;gt; it's creating records, and the order they are created in is
&lt;br&gt;&amp;gt; significant.  Suppose this is populated by an javascript autocomplete
&lt;br&gt;&amp;gt; where a user is picking a series of destinations.  If the declaration
&lt;br&gt;&amp;gt; is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; has_many :routes, :order =&amp;gt; 'id'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then the order that the routes are inserted is significant.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now it's true that you can control the order by creating routes
&lt;br&gt;&amp;gt; manually, but being able to assign to the leaf association is
&lt;br&gt;&amp;gt; incredibly useful in certain circumstances because it can remove a ton
&lt;br&gt;&amp;gt; of boilerplate bookkeeping code.  The view and controller don't even
&lt;br&gt;&amp;gt; need to know about Routes at all, they just work with Destinations
&lt;br&gt;&amp;gt; which is much cleaner.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Finally, I the order should be preserved for @person.destination_ids=
&lt;br&gt;&amp;gt; for simple symmetry with @person.destinations= and other iterating
&lt;br&gt;&amp;gt; object creators which all seem to preserve order in my experience.
&lt;/div&gt;&lt;br&gt;It seem to me that ordering on id isn't what you really want here.
&lt;br&gt;&lt;br&gt;What happens when you add the function to reorder the routes? &amp;nbsp;If it
&lt;br&gt;were me I'd probably do something like adding a position attribute to
&lt;br&gt;route and use something like acts_as_list
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Rick DeNatale
&lt;br&gt;&lt;br&gt;Blog: &lt;a href=&quot;http://talklikeaduck.denhaven2.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://talklikeaduck.denhaven2.com/&lt;/a&gt;&lt;br&gt;Twitter: &lt;a href=&quot;http://twitter.com/RickDeNatale&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/RickDeNatale&lt;/a&gt;&lt;br&gt;WWR: &lt;a href=&quot;http://www.workingwithrails.com/person/9021-rick-denatale&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.workingwithrails.com/person/9021-rick-denatale&lt;/a&gt;&lt;br&gt;LinkedIn: &lt;a href=&quot;http://www.linkedin.com/in/rickdenatale&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/rickdenatale&lt;/a&gt;&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26351728&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26351728&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preserving-has_many-%3Athrough-ids-assignment-order-tp26293117p26351728.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339233</id>
	<title>template vs view</title>
	<published>2009-11-13T08:21:26Z</published>
	<updated>2009-11-13T08:21:26Z</updated>
	<author>
		<name>Gaspard Bucher</name>
	</author>
	<content type="html">&lt;br&gt;I know there has been a lot of refactoring going on in the rendering
&lt;br&gt;engine in Rails 3.0. I just hope we get a clear definition and usage
&lt;br&gt;of &amp;quot;view&amp;quot; (instances of ActionView::Base) and &amp;quot;template&amp;quot; (instances of
&lt;br&gt;ActionView::Template).
&lt;br&gt;&lt;br&gt;What is considered as &amp;quot;view&amp;quot; parameter in some places (template code)
&lt;br&gt;is stored as @template in the controller.
&lt;br&gt;&lt;br&gt;And making it possible to access the view during template compilation
&lt;br&gt;would be nice...
&lt;br&gt;&lt;br&gt;Gaspard
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339233&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339233&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/template-vs-view-tp26339233p26339233.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26324817</id>
	<title>Re: Validating models on destruction</title>
	<published>2009-11-12T11:27:10Z</published>
	<updated>2009-11-12T11:27:10Z</updated>
	<author>
		<name>Ryan Angilly</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 12, 2009 at 2:10 PM, dasil003 &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324817&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gabriel.d@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
I understand where you&amp;#39;re coming from here.  I faced this issue just&lt;br&gt;
last week.  However I think it&amp;#39;s a bit tricky to piggyback this onto&lt;br&gt;
validations, because validations are conceptually designed around&lt;br&gt;
record creation.  It&amp;#39;s all built to support the idea of showing errors&lt;br&gt;
on specific fields in an edit form.  When it comes to destroying&lt;br&gt;
records I&amp;#39;m not sure it makes conceptual sense to flag individual&lt;br&gt;
fields with errors.  In some cases yes, but more often it seems like&lt;br&gt;
it would be due to some combined state with other records and&lt;br&gt;
associations and in general maps much less cleanly to fields.&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Right, which is why in this case I wanted to use add_to_base&lt;br&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;br&gt;
I would definitely support some infrastructure improvement here, but I&lt;br&gt;
think we&amp;#39;d need to take a deep look at AR::Errors and figure out what&lt;br&gt;
would be the useful part for destroy validations, and make sure to&lt;br&gt;
keep the terminology clear... you wouldn&amp;#39;t want valid? to return false &lt;/blockquote&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;because a destroy validation failed for instance.&lt;br&gt;
&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Agreed.&lt;br&gt;&lt;br&gt;I&amp;#39;m not saying we should take all the current validations (uniqueness_of, presence_of, etc...) and give them the option to run on destruction.  Because you&amp;#39;re right that doesnt make any sense.  But I can see adding two methods: AR::B#validate_on_destroy and AR::B#valid_for_destruction?.   Then I&amp;#39;d modify the default scaffolding to check the return value of #destroy and conditionally display any errors that come back.&lt;br&gt;
&lt;br&gt;Any other thoughts?  Want patch?&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
On Nov 12, 10:25 am, Ryan Angilly &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324817&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;angi...@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hey guys,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Have you ever wanted to validate a record was valid for destruction?  Does&lt;br&gt;
&amp;gt; this make sense conceptually?  Let me paint a picture of something I just&lt;br&gt;
&amp;gt; ran into that makes me think I should be able to do this.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have a many to many polymorphic relationship between our Advertisement&lt;br&gt;
&amp;gt; model and a bunch of other models in our app.  One of these models is the&lt;br&gt;
&amp;gt; User model.  At any point I may want to find the ad for top_dashboard_ad_1&lt;br&gt;
&amp;gt; for a given user, but if that user doesnt have an ad specified I want to&lt;br&gt;
&amp;gt; fall back to our defaults:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; @user.ad_for(&amp;#39;top_dashboard_ad_1&amp;#39;)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; class User &amp;lt; AR::B&lt;br&gt;
&amp;gt;   def ad_for(type)&lt;br&gt;
&amp;gt;     advertisements.find_by_location(type) ||&lt;br&gt;
&amp;gt; SiteSettings.instance.ad_for(type)&lt;br&gt;
&amp;gt;   end&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; SiteSettings is a singleton model that also has a polymorphic relationship&lt;br&gt;
&amp;gt; with the Advertisement model.  This is all CMS&amp;#39;d.  A certain User can have&lt;br&gt;
&amp;gt; special ads assigned, and the defaults can be changed at any time.  Here&amp;#39;s&lt;br&gt;
&amp;gt; the kicker: If a certain advertisement is associated with the SiteSettings&lt;br&gt;
&amp;gt; instance (meaning it is a default), I dont want it to allow it to be&lt;br&gt;
&amp;gt; destroyed.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I currently have this in my Advertisement model:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; class Advertisement &amp;lt; AR::B&lt;br&gt;
&amp;gt;   before_destroy :make_sure_not_default&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;   private&lt;br&gt;
&amp;gt;   def make_sure_not_default&lt;br&gt;
&amp;gt;     !(ad_zone_placements.map{|a| a.placement.class}.include? SiteSettings&lt;br&gt;
&amp;gt;   end&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This does prevent the record from being destroyed, but doesnt provide any&lt;br&gt;
&amp;gt; feedback to the user as to why.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Seems like this should be a validation.  I want to be able to use AR::Errors&lt;br&gt;
&amp;gt; to send a message back to host explaining why it cannot be destroyed, but&lt;br&gt;
&amp;gt; that behavior kind of flies in the face of the conventional restful&lt;br&gt;
&amp;gt; controller generated in Rails scaffold (ie: in the destroy action, there is&lt;br&gt;
&amp;gt; no &amp;#39;check for errors and render the edit page&amp;#39;).  I feel like I should be&lt;br&gt;
&amp;gt; able to do:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;   validates_on_destroy :make_sure_not_default&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;   def make_sure_not_default&lt;br&gt;
&amp;gt;     errors.add_to_base(&amp;#39;Cannot destroy this AdZone while it is a default&amp;#39;)&lt;br&gt;
&amp;gt; if ad_zone_placements.map{|a| a.placement.class}.include? SiteSettings&lt;br&gt;
&amp;gt;   end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Right?  Has anyone else ever ran into this?  Is there something built in I&amp;#39;m&lt;br&gt;
&amp;gt; missing?  Am I have a braindead moment like that time I forgot about&lt;br&gt;
&amp;gt; &amp;quot;has_many :through&amp;quot; ?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; Ryan&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group. &lt;br&gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324817&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt; &lt;br&gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324817&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt; &lt;br&gt; For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Validating-models-on-destruction-tp26323797p26324817.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26324592</id>
	<title>Re: Validating models on destruction</title>
	<published>2009-11-12T11:10:30Z</published>
	<updated>2009-11-12T11:10:30Z</updated>
	<author>
		<name>dasil003-2</name>
	</author>
	<content type="html">&lt;br&gt;I understand where you're coming from here. &amp;nbsp;I faced this issue just
&lt;br&gt;last week. &amp;nbsp;However I think it's a bit tricky to piggyback this onto
&lt;br&gt;validations, because validations are conceptually designed around
&lt;br&gt;record creation. &amp;nbsp;It's all built to support the idea of showing errors
&lt;br&gt;on specific fields in an edit form. &amp;nbsp;When it comes to destroying
&lt;br&gt;records I'm not sure it makes conceptual sense to flag individual
&lt;br&gt;fields with errors. &amp;nbsp;In some cases yes, but more often it seems like
&lt;br&gt;it would be due to some combined state with other records and
&lt;br&gt;associations and in general maps much less cleanly to fields.
&lt;br&gt;&lt;br&gt;I would definitely support some infrastructure improvement here, but I
&lt;br&gt;think we'd need to take a deep look at AR::Errors and figure out what
&lt;br&gt;would be the useful part for destroy validations, and make sure to
&lt;br&gt;keep the terminology clear... you wouldn't want valid? to return false
&lt;br&gt;because a destroy validation failed for instance.
&lt;br&gt;&lt;br&gt;On Nov 12, 10:25 am, Ryan Angilly &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324592&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;angi...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey guys,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Have you ever wanted to validate a record was valid for destruction?  Does
&lt;br&gt;&amp;gt; this make sense conceptually?  Let me paint a picture of something I just
&lt;br&gt;&amp;gt; ran into that makes me think I should be able to do this.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a many to many polymorphic relationship between our Advertisement
&lt;br&gt;&amp;gt; model and a bunch of other models in our app.  One of these models is the
&lt;br&gt;&amp;gt; User model.  At any point I may want to find the ad for top_dashboard_ad_1
&lt;br&gt;&amp;gt; for a given user, but if that user doesnt have an ad specified I want to
&lt;br&gt;&amp;gt; fall back to our defaults:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; @user.ad_for('top_dashboard_ad_1')
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class User &amp;lt; AR::B
&lt;br&gt;&amp;gt;   def ad_for(type)
&lt;br&gt;&amp;gt;     advertisements.find_by_location(type) ||
&lt;br&gt;&amp;gt; SiteSettings.instance.ad_for(type)
&lt;br&gt;&amp;gt;   end
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; SiteSettings is a singleton model that also has a polymorphic relationship
&lt;br&gt;&amp;gt; with the Advertisement model.  This is all CMS'd.  A certain User can have
&lt;br&gt;&amp;gt; special ads assigned, and the defaults can be changed at any time.  Here's
&lt;br&gt;&amp;gt; the kicker: If a certain advertisement is associated with the SiteSettings
&lt;br&gt;&amp;gt; instance (meaning it is a default), I dont want it to allow it to be
&lt;br&gt;&amp;gt; destroyed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I currently have this in my Advertisement model:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class Advertisement &amp;lt; AR::B
&lt;br&gt;&amp;gt;   before_destroy :make_sure_not_default
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   private
&lt;br&gt;&amp;gt;   def make_sure_not_default
&lt;br&gt;&amp;gt;     !(ad_zone_placements.map{|a| a.placement.class}.include? SiteSettings
&lt;br&gt;&amp;gt;   end
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This does prevent the record from being destroyed, but doesnt provide any
&lt;br&gt;&amp;gt; feedback to the user as to why.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Seems like this should be a validation.  I want to be able to use AR::Errors
&lt;br&gt;&amp;gt; to send a message back to host explaining why it cannot be destroyed, but
&lt;br&gt;&amp;gt; that behavior kind of flies in the face of the conventional restful
&lt;br&gt;&amp;gt; controller generated in Rails scaffold (ie: in the destroy action, there is
&lt;br&gt;&amp;gt; no 'check for errors and render the edit page').  I feel like I should be
&lt;br&gt;&amp;gt; able to do:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   validates_on_destroy :make_sure_not_default
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   def make_sure_not_default
&lt;br&gt;&amp;gt;     errors.add_to_base('Cannot destroy this AdZone while it is a default')
&lt;br&gt;&amp;gt; if ad_zone_placements.map{|a| a.placement.class}.include? SiteSettings
&lt;br&gt;&amp;gt;   end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Right?  Has anyone else ever ran into this?  Is there something built in I'm
&lt;br&gt;&amp;gt; missing?  Am I have a braindead moment like that time I forgot about
&lt;br&gt;&amp;gt; &amp;quot;has_many :through&amp;quot; ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Ryan
&lt;/div&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324592&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324592&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Validating-models-on-destruction-tp26323797p26324592.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26324426</id>
	<title>Re: Preserving has_many :through ids assignment order</title>
	<published>2009-11-12T10:59:33Z</published>
	<updated>2009-11-12T10:59:33Z</updated>
	<author>
		<name>dasil003-2</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 12, 10:38 am, Matt Jones &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324426&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;al2o...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; For this to make sense as a Rails patch, there's got to be a reason  
&lt;br&gt;&amp;gt; why this ordering should be preserved. What's the difference between  
&lt;br&gt;&amp;gt; adding the records in the [5,8,3] order vs. some other order?
&lt;br&gt;&lt;br&gt;The reason is because when you assign directly to a has_many :through,
&lt;br&gt;it's creating records, and the order they are created in is
&lt;br&gt;significant. &amp;nbsp;Suppose this is populated by an javascript autocomplete
&lt;br&gt;where a user is picking a series of destinations. &amp;nbsp;If the declaration
&lt;br&gt;is:
&lt;br&gt;&lt;br&gt;has_many :routes, :order =&amp;gt; 'id'
&lt;br&gt;&lt;br&gt;Then the order that the routes are inserted is significant.
&lt;br&gt;&lt;br&gt;Now it's true that you can control the order by creating routes
&lt;br&gt;manually, but being able to assign to the leaf association is
&lt;br&gt;incredibly useful in certain circumstances because it can remove a ton
&lt;br&gt;of boilerplate bookkeeping code. &amp;nbsp;The view and controller don't even
&lt;br&gt;need to know about Routes at all, they just work with Destinations
&lt;br&gt;which is much cleaner.
&lt;br&gt;&lt;br&gt;Finally, I the order should be preserved for @person.destination_ids=
&lt;br&gt;for simple symmetry with @person.destinations= and other iterating
&lt;br&gt;object creators which all seem to preserve order in my experience.
&lt;br&gt;&lt;br&gt;Patch forthcoming...
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324426&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324426&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preserving-has_many-%3Athrough-ids-assignment-order-tp26293117p26324426.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26324050</id>
	<title>Re: Preserving has_many :through ids assignment order</title>
	<published>2009-11-12T10:38:38Z</published>
	<updated>2009-11-12T10:38:38Z</updated>
	<author>
		<name>Matt Jones</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On Nov 12, 2009, at 11:54 AM, dasil003 wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Matt, your comment doesn't make any sense. &amp;nbsp; I'm not sure what you are
&lt;br&gt;&amp;gt; thinking, but you are clearly not understanding the issue.
&lt;br&gt;&lt;br&gt;Whoops - looks like I was reading the question the other way around &amp;nbsp;
&lt;br&gt;(that you *wanted* the records to come back in order). Sorry about that!
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; This is
&lt;br&gt;&amp;gt; not my own method, it is a method generated by the has_many :through
&lt;br&gt;&amp;gt; macro. &amp;nbsp;Consider this concrete example:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Person has_many :routes
&lt;br&gt;&amp;gt; Person has_many :destinations, :through =&amp;gt; :routes
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now say I do, @person.desination_ids = [5, 8, 3]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That is what the included method definition does. &amp;nbsp;It's totally
&lt;br&gt;&amp;gt; reasonable to expect the first route insertion to be for destination
&lt;br&gt;&amp;gt; 5, the second insertion to be for destination 8 and the third
&lt;br&gt;&amp;gt; insertion to be for desination 3. &amp;nbsp;However it doesn't do this as you
&lt;br&gt;&amp;gt; pointed out due to the fact that it finds all the destinations without
&lt;br&gt;&amp;gt; any order. &amp;nbsp;However as I tried to point out in the original post,
&lt;br&gt;&amp;gt; there is NO WAY to maintain the order in the SQL because it's
&lt;br&gt;&amp;gt; arbitrary, it's not sorted on any field.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That is why I redefined the method so that it uses the original array
&lt;br&gt;&amp;gt; to inform the final order of objects that get passed to the
&lt;br&gt;&amp;gt; association method (ie. @person.destinations). &amp;nbsp;As you can see, the
&lt;br&gt;&amp;gt; ordering of my association is neither here nor there. &amp;nbsp;It's the order
&lt;br&gt;&amp;gt; of insertion that matters, and it's not controlled by an order clause.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My question was not how do I solve this, my question was whether
&lt;br&gt;&amp;gt; people think that this should be submitted as a Rails patch. &amp;nbsp;Having
&lt;br&gt;&amp;gt; thought about it further I'm convinced it should be.
&lt;/div&gt;&lt;br&gt;For this to make sense as a Rails patch, there's got to be a reason &amp;nbsp;
&lt;br&gt;why this ordering should be preserved. What's the difference between &amp;nbsp;
&lt;br&gt;adding the records in the [5,8,3] order vs. some other order?
&lt;br&gt;&lt;br&gt;--Matt JOnes
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324050&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt;
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324050&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt;
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-core?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-core?hl=en&lt;/a&gt;&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preserving-has_many-%3Athrough-ids-assignment-order-tp26293117p26324050.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26323797</id>
	<title>Validating models on destruction</title>
	<published>2009-11-12T10:25:08Z</published>
	<updated>2009-11-12T10:25:08Z</updated>
	<author>
		<name>Ryan Angilly</name>
	</author>
	<content type="html">Hey guys,&lt;br&gt;&lt;br&gt;Have you ever wanted to validate a record was valid for destruction?  Does this make sense conceptually?  Let me paint a picture of something I just ran into that makes me think I should be able to do this.&lt;br&gt;
&lt;br&gt;I have a many to many polymorphic relationship between our Advertisement model and a bunch of other models in our app.  One of these models is the User model.  At any point I may want to find the ad for top_dashboard_ad_1 for a given user, but if that user doesnt have an ad specified I want to fall back to our defaults:&lt;br&gt;
&lt;br&gt;@user.ad_for(&amp;#39;top_dashboard_ad_1&amp;#39;)&lt;br&gt;&lt;br&gt;class User &amp;lt; AR::B&lt;br&gt;  def ad_for(type)&lt;br&gt;    advertisements.find_by_location(type) || SiteSettings.instance.ad_for(type)&lt;br&gt;  end&lt;br&gt;end&lt;br&gt;&lt;br&gt;SiteSettings is a singleton model that also has a polymorphic relationship with the Advertisement model.  This is all CMS&amp;#39;d.  A certain User can have special ads assigned, and the defaults can be changed at any time.  Here&amp;#39;s the kicker: If a certain advertisement is associated with the SiteSettings instance (meaning it is a default), I dont want it to allow it to be destroyed.&lt;br&gt;
&lt;br&gt;I currently have this in my Advertisement model:&lt;br&gt;&lt;br&gt;class Advertisement &amp;lt; AR::B&lt;br&gt;  before_destroy :make_sure_not_default&lt;br&gt;&lt;br&gt;  private&lt;br&gt;  def make_sure_not_default&lt;br&gt;    !(ad_zone_placements.map{|a| a.placement.class}.include? SiteSettings&lt;br&gt;
  end&lt;br&gt;end&lt;br&gt;&lt;br&gt;This does prevent the record from being destroyed, but doesnt provide any feedback to the user as to why.&lt;br&gt;&lt;br&gt;Seems like this should be a validation.  I want to be able to use AR::Errors to send a message back to host explaining why it cannot be destroyed, but that behavior kind of flies in the face of the conventional restful controller generated in Rails scaffold (ie: in the destroy action, there is no &amp;#39;check for errors and render the edit page&amp;#39;).  I feel like I should be able to do:&lt;br&gt;
&lt;br&gt;  validates_on_destroy :make_sure_not_default&lt;br&gt;&lt;br&gt;  def make_sure_not_default&lt;br&gt;    errors.add_to_base(&amp;#39;Cannot destroy this AdZone while it is a default&amp;#39;) if ad_zone_placements.map{|a| a.placement.class}.include? SiteSettings&lt;br&gt;
  end&lt;br&gt;&lt;br&gt;&lt;br&gt;Right?  Has anyone else ever ran into this?  Is there something built in I&amp;#39;m missing?  Am I have a braindead moment like that time I forgot about &amp;quot;has_many :through&amp;quot; ?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Ryan&lt;br&gt;&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Core&amp;quot; group. &lt;br&gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323797&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core@...&lt;/a&gt; &lt;br&gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323797&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-core+unsubscribe@...&lt;/a&gt; &lt;br&gt; For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Validating-models-on-destruction-tp26323797p26323797.html" />
</entry>

</feed>
