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

<channel>
	<title>Afrobot</title>
	<atom:link href="http://afrobot.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://afrobot.com</link>
	<description>Parse the time away</description>
	<pubDate>Sun, 23 Mar 2008 01:41:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Creating a messaging system using acts_as_network</title>
		<link>http://afrobot.com/2008/03/22/creating-a-messaging-system-using-acts_as_network/</link>
		<comments>http://afrobot.com/2008/03/22/creating-a-messaging-system-using-acts_as_network/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 12:04:20 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[acts_as_network]]></category>

		<category><![CDATA[association]]></category>

		<category><![CDATA[database]]></category>

		<category><![CDATA[habtm]]></category>

		<category><![CDATA[hamt]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[messaging]]></category>

		<category><![CDATA[ror]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[rubyonrails]]></category>

		<category><![CDATA[social]]></category>

		<category><![CDATA[socialnetwork]]></category>

		<category><![CDATA[socialnetworking]]></category>

		<guid isPermaLink="false">http://afro.wordpress.com/2008/03/22/creating-a-messaging-system-using-acts_as_network/</guid>
		<description><![CDATA[This started with the help of this Rails Messaging Tutorial which I borrowed a used a couple lines of code from this tutorial to extend this project. So many thanks to manitoba98 and the guys at PingMe for writing acts_as_network.
There are so many things acts_as_network can be used for. So far I have used acts_as_network [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This started with the help of this <a href="http://www.novawave.net/public/rails_messaging_tutorial.html">Rails Messaging Tutorial</a> which I borrowed a used a couple lines of code from this tutorial to extend this project. So many thanks to manitoba98 and the guys at <a href="http://www.gopingme.com">PingMe</a> for writing <a href="http://actsasnetwork.rubyforge.org/svn/plugins">acts_as_network</a>.</p>
<p><font>There are so many things acts_as_network can be used for. So far I have used acts_as_network to allow users to be able to invite friends as well as receive friend requests from other members. It was also used to implement a way for users to block other users and I am using it for my messaging system. So I thought I would put this out there just to kind of show anyone who might be interested to see just how great acts_as_network is.</font></p>
<p><font>So I will assume you have installed the plugin. Follow the link above if you cannot find it otherwise. I am also using restful_authentication but you can use whatever.</font></p>
<p><font>After you install the plugin create a new model and controller </font></p>
<blockquote><p>script/generate model Mail user_id:integer user_id_target:integer subject:string body:text recipient_deleted:boolean author_deleted:boolean</p>
<p>script/generate controller Messages index show new edit</p>
</blockquote>
<p><font>In the migration setup </font></p>
<blockquote><p>t.boolean :author_deleted, :default =&gt; &#8216;false&#8217;</p>
<p>t.boolean :recipient_deleted, :default =&gt; &#8216;false&#8217;</p>
</blockquote>
<p><font>Now in your User Model add the association</font></p>
<blockquote><p>class User &lt; ActiveRecord::Base</p>
<p>&nbsp;&nbsp; acts_as_network :messages, :through =&gt; :mails,</p>
<p>end</p>
</blockquote>
<p><font>Now in the Mail Model</font></p>
<blockquote><p>class Mail &lt; ActiveRecord::Base<br />&nbsp; belongs_to&nbsp; :user<br />&nbsp; belongs_to&nbsp; :user_target, :class_name =&gt; &#8216;User&#8217;, :foreign_key =&gt; &#8216;user_id_target&#8217;<br />&nbsp; validates_presence_of :user, :user_target, :body</p>
</blockquote>
<p><font>Setup your Controller to look something like this&#8230;</font><br />
<blockquote>
<p>class MessagesController &lt; ApplicationController<br />&nbsp; before_filter :login_required  </p>
<p>&nbsp; def index<br />&nbsp;&nbsp;&nbsp; @messages = (params[:folder] != &#8217;sent&#8217;) ? current_user.mails_in : current_user.mails_out<br />&nbsp;&nbsp;&nbsp; @folder = params[:folder]<br />&nbsp; end<br />&nbsp; def show<br />&nbsp;&nbsp;&nbsp; @message = Mail.find(params[:id])<br />&nbsp;&nbsp;&nbsp; @user = User.find(@message.user_id)<br />&nbsp; end  </p>
<p>&nbsp; def new<br />&nbsp;&nbsp;&nbsp; @message = Mail.new<br />&nbsp;&nbsp;&nbsp; @target = User.find(params[:user_target])<br />&nbsp; end<br />&nbsp; def edit<br />&nbsp;&nbsp;&nbsp; @message = Mail.find(params[:id])<br />&nbsp;&nbsp;&nbsp; @subject = @message.subject.sub(/^(Re: )?/, &#8220;Re: &#8220;)<br />&nbsp;&nbsp;&nbsp; @target = User.find(@message.user_id)<br />&nbsp; end<br />&nbsp; def create<br />&nbsp;&nbsp;&nbsp; @message = Mail.new(:user =&gt; current_user, :user_target =&gt; User.find(params[:user_target]), :subject =&gt; params[:subject], :body =&gt; params[:body])<br />&nbsp;&nbsp;&nbsp; @message.save ? redirect_to(inbox_path) : render(:action =&gt; &#8216;new&#8217;, :user_targer =&gt; params[:user_target])&nbsp;&nbsp;&nbsp; <br />&nbsp; end<br />&nbsp; def update<br />&nbsp;&nbsp;&nbsp; @message = Mail.find(params[:id])<br />&nbsp;&nbsp;&nbsp; @message.toggle!(:recipient_deleted) ? redirect_to(inbox_path) : redirect_to(:action =&gt; &#8217;show&#8217;, :id =&gt; params[:id])<br />&nbsp; end<br />&nbsp; def destroy<br />&nbsp;&nbsp;&nbsp; @message = Mail.find(params[:id])<br />&nbsp;&nbsp;&nbsp; if @message.user_id == current_user.id<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @message.update_attribute(&#8221;author_deleted&#8221;, true)<br />&nbsp;&nbsp;&nbsp; elsif @message.user_id_target == current_user.id<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @message.update_attribute(&#8221;recipient_deleted&#8221;, true)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; elsif @message.user_id == current_user.id &amp;&amp; @message.user_id_target == current_user.id<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @message.update_attributes(&#8221;recipient_deleted&#8221; =&gt; true, &#8220;author_deleted&#8221; =&gt; true)<br />&nbsp;&nbsp;&nbsp; end<br />&nbsp;&nbsp;&nbsp; redirect_to inbox_path<br />&nbsp; end  </p>
<p>end</p>
</blockquote>
<p><font>The index.html.erb I am about to show you is for an example only. It&#8217;s wasn&#8217;t written with DRY in mind. I&#8217;ll post some better looking code at some later point but for now this is what it is.</font><br />
<blockquote>
<p>&lt;table width=&#8221;100%&#8221; border=&#8221;0&#8243;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Login&lt;/th&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Subject&lt;/th&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Sent&lt;/th&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% @messages.each do |message| %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% user = (@folder != &#8217;sent&#8217;)? User.find(message.user_id) : User.find(message.user_id_target) %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% if @folder == &#8216;inbox&#8217; || @folder.blank? %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% if message.recipient_deleted == false %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;%= link_to user.login, user_path(user) %&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;%= link_to message.subject, message_path(message) %&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;%= distance_of_time_in_words(message.created_at, Time.now) %&gt; ago&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% end %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% elsif @folder == &#8217;sent&#8217; %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% if message.author_deleted == false %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;%= link_to user.login, user_path(user) %&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;%= link_to message.subject, message_path(message) %&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;%= distance_of_time_in_words(message.created_at, Time.now) %&gt; ago&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% end %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% elsif @folder == &#8216;trash&#8217; %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% if message.recipient_deleted == true %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;%= link_to user.login, user_path(user) %&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;%= link_to message.subject, message_path(message) %&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;%= distance_of_time_in_words(message.created_at, Time.now) %&gt; ago&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% end %&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% end %&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;% end %&gt;<br />&lt;/table&gt;<br />&lt;/div&gt;</p>
</blockquote>
<p><font>edit.html.erb</font></p>
<blockquote><p>&lt;% form_tag &#8216;/messages/create&#8217; do %&gt;<br />&nbsp;&nbsp;&nbsp; &lt;ul&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;label for=&#8221;user_target&#8221;&gt;To:&lt;/label&gt; &lt;%=h @target.login %&gt;&lt;%= hidden_field_tag &#8216;user_target&#8217;, @target.id %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;label for=&#8221;subject&#8221;&gt;Subject:&lt;/label&gt; &lt;%= text_field_tag &#8217;subject&#8217;, @subject %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;label for=&#8221;body&#8221;&gt;Body:&lt;/label&gt;&lt;br /&gt; &lt;%= text_area_tag &#8216;body&#8217;, @body %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;%= submit_tag &#8216;Create&#8217; %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/ul&gt;<br />&lt;% end %&gt;</p>
</blockquote>
<p><font>new.html.erb</font><br />
<blockquote>
<p>&lt;div id=&#8221;message_new&#8221;&gt;<br />&lt;% form_tag &#8216;/messages/create&#8217; do %&gt;<br />&nbsp;&nbsp;&nbsp; &lt;ul&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;label for=&#8221;user_target&#8221;&gt;To:&lt;/label&gt; &lt;%=h @target.login %&gt;&lt;%= hidden_field_tag &#8216;user_target&#8217;, @target.id %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;label for=&#8221;subject&#8221;&gt;Subject:&lt;/label&gt; &lt;%= text_field_tag &#8217;subject&#8217;, &#8221; ,:class=&gt;&#8221;text&#8221;&nbsp; %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;label for=&#8221;body&#8221;&gt;Body:&lt;/label&gt;&lt;br /&gt; &lt;%= text_area_tag &#8216;body&#8217; %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;%= submit_tag &#8216;Create&#8217; %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/ul&gt;<br />&lt;% end %&gt;<br />&lt;/div&gt;</p>
</blockquote>
<p>show.html.erb</p>
<blockquote><p>&lt;div id=&#8221;message_show&#8221;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;ul&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;Subject: &lt;%=h @message.subject %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;From: &lt;%=h @user.login %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class=&#8221;body&#8221;&gt;Body:&lt;br /&gt;&lt;br /&gt;&lt;%= @message.body %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;%= link_to &#8216;Reply&#8217;, edit_message_path %&gt; | &lt;%= link_to &#8216;Trash&#8217;, message_path(@message), :method =&gt; :delete %&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/ul&gt;<br />&lt;/div&gt; </p>
<p>routes.rb:&nbsp;&nbsp;&nbsp;&nbsp; map.resources :messages </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.inbox &#8216;/inbox&#8217;, :controller =&gt; &#8216;messages&#8217;, :action =&gt; &#8216;index&#8217;, :folder =&gt; &#8216;inbox&#8217; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.sent&nbsp; &#8216;/sent&#8217;, :controller =&gt; &#8216;messages&#8217;, :action =&gt; &#8216;index&#8217;, :folder =&gt; &#8217;sent&#8217;</p>
</blockquote>
<p><font>And that should about do it.</font> </p>
<p>&nbsp;</p>
<div class="wlWriterSmartContent" style="display:inline;margin:0;padding:0;">del.icio.us Tags: <a href="http://del.icio.us/popular/ruby" rel="tag">ruby</a>,<a href="http://del.icio.us/popular/rails" rel="tag">rails</a>,<a href="http://del.icio.us/popular/ror" rel="tag">ror</a>,<a href="http://del.icio.us/popular/rubyonrails" rel="tag">rubyonrails</a>,<a href="http://del.icio.us/popular/plugins" rel="tag">plugins</a>,<a href="http://del.icio.us/popular/social" rel="tag">social</a>,<a href="http://del.icio.us/popular/messaging" rel="tag">messaging</a>,<a href="http://del.icio.us/popular/howto" rel="tag">howto</a>,<a href="http://del.icio.us/popular/acts_as_network" rel="tag">acts_as_network</a>,<a href="http://del.icio.us/popular/habtm" rel="tag">habtm</a>,<a href="http://del.icio.us/popular/hamt" rel="tag">hamt</a>,<a href="http://del.icio.us/popular/database" rel="tag">database</a>,<a href="http://del.icio.us/popular/association" rel="tag">association</a>,<a href="http://del.icio.us/popular/socialnetwork" rel="tag">socialnetwork</a>,<a href="http://del.icio.us/popular/socialnetworking" rel="tag">socialnetworking</a></div>
<blockquote><p><font></font></p>
</blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/119/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/119/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=119&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2008/03/22/creating-a-messaging-system-using-acts_as_network/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>
	</item>
		<item>
		<title>Extending User Profiles with restful_authentication</title>
		<link>http://afrobot.com/2008/03/22/extending-user-profiles-with-restful_authentication/</link>
		<comments>http://afrobot.com/2008/03/22/extending-user-profiles-with-restful_authentication/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 11:10:16 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[rail]]></category>

		<category><![CDATA[rest]]></category>

		<category><![CDATA[restful]]></category>

		<category><![CDATA[restful_authenication]]></category>

		<category><![CDATA[ror]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[rubyonrails]]></category>

		<guid isPermaLink="false">http://afro.wordpress.com/2008/03/22/extending-user-profiles-with-restful_authentication/</guid>
		<description><![CDATA[The project I am working on pretty much revolves around a user&#8217;s profile. I am still pretty new to working with Rails but, I knew there was an easier way of implementing this without having to add columns to the user table. I looked around for awhile for a tutorial or blog suggesting a painless [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The project I am working on pretty much revolves around a user&#8217;s profile. I am still pretty new to working with Rails but, I knew there was an easier way of implementing this without having to add columns to the user table. I looked around for awhile for a tutorial or blog suggesting a painless way of adding this to an application.<br />
I really wasn&#8217;t able to find anything so I decided to write this mini-how to.</p>
<p>I would first recommend that you take a look at <a href="http://rails.raaum.org/activerecord.html">Raaum&#8217;s Rails Reader</a>. There is some really great documentation about ActiveRecord and how associations work. It would <b><u>behoove</u></b> you to follow along creating the user models and the migrations following along with the text because things will make sense that way. If you are lazy like me creating a bunch of junk models that you are just going to destroy sounds tedious I know but, it&#8217;s definitely worth the effort in the long run.</p>
<p>Nevertheless, I needed to be able to call a user&#8217;s profile within <b>current_user</b>. For example <b>current_user.profile.body. </b>So assuming you have already created your user model and setup the inclusion within you Application Controller. Now create your profile model and the migration accordingly.</p>
<blockquote><p><i>script/generate model Profile user_id:integer body:text </i></p></blockquote>
<p>Now open the Profile controller and add <i><b>has_one :user</b></i> somewhere after the class declaration.</p>
<blockquote><p><i>class Profile &lt; ActiveRecord::Base<br />
has_one :user<br />
end</i></p></blockquote>
<p>It is work mentioning at this point that within the scope of this text the user will be created then redirected to the edit their profile. So if you plan to add validations in your model (ie: validates_presence_of) make sure to include</p>
<blockquote><p><b><i>validates_presence_of :your_fields, :on =&gt; :update</i></b></p></blockquote>
<p>Otherwise you will be unable to save the profile later.<br />
Now add the same has_one statement to your User model but you will use</p>
<blockquote><p><i>class User &lt; ActiveRecord::Base<br />
has_one :profile</i></p></blockquote>
<p>Here is an example of how your controller might look&#8230;</p>
<blockquote><p><i>class UsersController &lt; ApplicationController<br />
after_filter  :update_session, :only =&gt; :create<br />
before_filter :login_required, :only =&gt; [:edit, :show, :update]<br />
before_filter :logout_required, :only =&gt; [:new, :create]<br />
def index<br />
@users = User.find(:all, :conditions =&gt; ['status = ?', 'active'])<br />
end<br />
def show<br />
@user = User.find_by_login(params[:id])<br />
end<br />
def create<br />
@user = User.new(params[:user])<br />
@user.profile = Profile.new<br />
self.current_user = (@user.save!)? @user : render(:action =&gt; &#8216;new&#8217;)<br />
redirect_to :action =&gt; &#8216;edit&#8217;, :id =&gt; self.current_user.login<br />
flash[:notice] = &#8216;Account successfully created!&#8217;<br />
end<br />
def update<br />
self.current_user.profile.update_attributes!(params[:profile])? redirect_to(:action =&gt; &#8217;show&#8217;, :id =&gt; self.current_user.login) : render(:action =&gt; &#8216;edit&#8217;)<br />
end<br />
end</i></p></blockquote>
<p>As you can see when the create method is called it creates the Profile model and after the user is saved then redirected to the edit template.</p>
<p>This was the solution that worked best for me.</p>
<div class="wlWriterSmartContent" style="display:inline;margin:0;padding:0;">del.icio.us Tags: <a href="http://del.icio.us/popular/ruby" rel="tag">ruby</a>,<a href="http://del.icio.us/popular/rubyonrails" rel="tag">rubyonrails</a>,<a href="http://del.icio.us/popular/rail" rel="tag">rail</a>,<a href="http://del.icio.us/popular/ror" rel="tag">ror</a>,<a href="http://del.icio.us/popular/plugins" rel="tag">plugins</a>,<a href="http://del.icio.us/popular/rest" rel="tag">rest</a>,<a href="http://del.icio.us/popular/restful" rel="tag">restful</a>,<a href="http://del.icio.us/popular/restful_authentication" rel="tag">restful_authentication</a>,<a href="http://del.icio.us/popular/database" rel="tag">database</a>,<a href="http://del.icio.us/popular/association" rel="tag">association</a>,<a href="http://del.icio.us/popular/hasmany" rel="tag">hasmany</a>,<a href="http://del.icio.us/popular/hasone" rel="tag">hasone</a>,<a href="http://del.icio.us/popular/habt" rel="tag">habt</a></div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/118/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/118/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=118&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2008/03/22/extending-user-profiles-with-restful_authentication/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>
	</item>
		<item>
		<title>New Orleans street parade</title>
		<link>http://afrobot.com/2007/10/12/new-orleans-street-parade/</link>
		<comments>http://afrobot.com/2007/10/12/new-orleans-street-parade/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 18:56:44 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[New Orleans]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[jazz]]></category>

		<category><![CDATA[neworleans]]></category>

		<category><![CDATA[nola]]></category>

		<category><![CDATA[parade]]></category>

		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://afrobot.com/2007/10/12/new-orleans-street-parade/</guid>
		<description><![CDATA[This fun street parade woke me up this morning.
Tags: parade neworleans nola jazz band nola
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote>This fun street parade woke me up this morning.<img src="http://lh5.google.com/rnathanwilson/Rw-5av3rWrI/AAAAAAAAAHw/ID9L8SJeUFc/HPIM0203.jpg?imgmax=640" height="271" width="364" /></p></blockquote>
<p>Tags: <a href="http://technorati.com/tag/parade" rel="tag">parade</a> <a href="http://technorati.com/tag/neworleans" rel="tag">neworleans</a> <a href="http://technorati.com/tag/nola" rel="tag">nola</a> <a href="http://technorati.com/tag/jazz" rel="tag">jazz</a> <a href="http://technorati.com/tag/band" rel="tag">band</a> <a href="http://technorati.com/tag/nola" rel="tag">nola</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/107/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/107/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=107&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2007/10/12/new-orleans-street-parade/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>

		<media:content url="http://lh5.google.com/rnathanwilson/Rw-5av3rWrI/AAAAAAAAAHw/ID9L8SJeUFc/HPIM0203.jpg?imgmax=640" medium="image" />
	</item>
		<item>
		<title>discretion with the facts</title>
		<link>http://afrobot.com/2007/10/04/discretion-with-the-facts/</link>
		<comments>http://afrobot.com/2007/10/04/discretion-with-the-facts/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 20:30:54 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[children]]></category>

		<category><![CDATA[desert]]></category>

		<category><![CDATA[florida]]></category>

		<category><![CDATA[homicide]]></category>

		<category><![CDATA[kids]]></category>

		<category><![CDATA[media]]></category>

		<category><![CDATA[murder]]></category>

		<category><![CDATA[police]]></category>

		<guid isPermaLink="false">http://afrobot.com/2007/10/04/discretion-with-the-facts/</guid>
		<description><![CDATA[Cops: Florida Boy, 13, Killed Brother, 8, Over Dessert:
ORLANDO, Fla. —  A 13-year-old choked and beat his 8-year-old brother to death because the younger boy ate a dessert and the older one worried he would be blamed, authorities said Wednesday.
Demetrius Key was arrested on first-degree murder. The boys&#8217; mother, Tangela Key, told police she [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.foxnews.com/story/0,2933,299224,00.html" target="_blank">Cops: Florida Boy, 13, Killed Brother, 8, Over Dessert</a>:<br />
<i>ORLANDO, Fla. —  A 13-year-old choked and beat his 8-year-old brother to death because the younger boy ate a dessert and the older one worried he would be blamed, authorities said Wednesday.</i><br />
<i>Demetrius Key was arrested on first-degree murder. The boys&#8217; mother, Tangela Key, told police she was visiting a cousin nearby and left him in charge of Levares Key and other younger siblings Saturday.</i><br />
<i>A neighbor told investigators she heard four loud bangs, followed by 10 minutes of quiet and then more commotion, according to an Orange County Sheriff&#8217;s Office news release.</i><br />
<i>Demetrius Key went to the cousin&#8217;s house and told his mother his brother was &#8220;passed out,&#8221; the sheriff&#8217;s office said. The younger boy was pronounced dead at a hospital.</i><br />
<i>Demetrius Key initially said he hit his brother with a metal shelf support, investigators said. After investigators searched the house, he said he used a broom handle, the sheriff&#8217;s office said.</i><br />
<i>He then told the detective he punched the boy, choked him and banged his head on the floor, according to an affidavit.</i><br />
<i>&#8220;Demetrius offered that Levares upset him by eating a dessert that (he) was not to have eaten,&#8221; Detective Appling Wells wrote. &#8220;He also advised Levares upset him by picking a scab and causing it to bleed.</i><br />
<i>&#8220;Demetrius said he feared Levares would blame both circumstances on him and tell his mother he had struck him and eaten the dessert.&#8221;</i><br />
<b>The sheriff&#8217;s office would not say what the dessert was.</b></p>
<p>Tags: <a href="http://technorati.com/tag/news" rel="tag">news</a> <a href="http://technorati.com/tag/media" rel="tag">media</a> <a href="http://technorati.com/tag/florida" rel="tag">florida</a> <a href="http://technorati.com/tag/police" rel="tag">police</a> <a href="http://technorati.com/tag/murder" rel="tag">murder</a> <a href="http://technorati.com/tag/homicide" rel="tag">homicide</a> <a href="http://technorati.com/tag/desert" rel="tag">desert</a> <a href="http://technorati.com/tag/kids" rel="tag">kids</a> <a href="http://technorati.com/tag/children" rel="tag">children</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/106/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/106/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=106&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2007/10/04/discretion-with-the-facts/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>
	</item>
		<item>
		<title>THERE&#8217;S GOLD IN THEM THERE MOUNTAINS</title>
		<link>http://afrobot.com/2007/10/03/theres-gold-in-them-there-mountians/</link>
		<comments>http://afrobot.com/2007/10/03/theres-gold-in-them-there-mountians/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 06:04:06 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[Drugs]]></category>

		<category><![CDATA[News]]></category>

		<category><![CDATA[WTF]]></category>

		<category><![CDATA[dare]]></category>

		<category><![CDATA[dea]]></category>

		<category><![CDATA[police]]></category>

		<category><![CDATA[Politics]]></category>

		<category><![CDATA[war]]></category>

		<guid isPermaLink="false">http://afrobot.com/2007/10/03/theres-gold-in-them-there-mountians/</guid>
		<description><![CDATA[NYTimes.com:
“We’re cutting off many heads,” Steve Robertson, a special agent and spokesman for the D.E.A., said yesterday. 
“Will new heads grow back? Yeah. That’s the nature of the drug business.”
I guess it&#8217;s just another game of Whack-a-Mole to these guys.
Tags: drugs dea police prison war dare 
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.nytimes.com/2007/09/29/sports/baseball/29doping.html?_r=1&amp;n=Top%2fReference%2fTimes%20Topics%2fOrganizations%2fD%2fDrug%20Enforcement%20Administration&amp;oref=slogin" target="_blank">NYTimes.com</a>:</p>
<blockquote><p><i>“We’re cutting off many heads,” Steve Robertson, a special agent and spokesman for the D.E.A., said yesterday. </i></p>
<p><i>“Will new heads grow back? Yeah. That’s the nature of the drug business.”</i></p></blockquote>
<p>I guess it&#8217;s just another game of Whack-a-Mole to these guys.</p>
<p>Tags: <a href="http://technorati.com/tag/drugs" rel="tag">drugs</a> <a href="http://technorati.com/tag/dea" rel="tag">dea</a> <a href="http://technorati.com/tag/police" rel="tag">police</a> <a href="http://technorati.com/tag/prison" rel="tag">prison</a> <a href="http://technorati.com/tag/war" rel="tag">war</a> <a href="http://technorati.com/tag/dare" rel="tag">dare</a> <a href="http://technorati.com/tag/" rel="tag"></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/105/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/105/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=105&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2007/10/03/theres-gold-in-them-there-mountians/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>
	</item>
		<item>
		<title>My response to Paypal&#8230;</title>
		<link>http://afrobot.com/2007/09/28/my-response-to-paypal/</link>
		<comments>http://afrobot.com/2007/09/28/my-response-to-paypal/#comments</comments>
		<pubDate>Sat, 29 Sep 2007 03:46:25 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[Ebay]]></category>

		<category><![CDATA[Paypal]]></category>

		<category><![CDATA[WTF]]></category>

		<category><![CDATA[assholes]]></category>

		<category><![CDATA[email]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[legal]]></category>

		<category><![CDATA[seller]]></category>

		<guid isPermaLink="false">http://afrobot.com/2007/09/28/my-response-to-paypal/</guid>
		<description><![CDATA[To Whom It May Concern:
 We have received your request for additional documentation to remove any restricted access which has been placed on our account. Your request was carefully considered. However, we regret we are unable to submit copies of invoices from our supplier(s) without first having a Nondisclosure Agreement from your firm.
Additionally, the privacy [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="margin-left:40px;font-family:verdana;">To Whom It May Concern:</p>
<p style="margin-left:40px;font-family:verdana;"> We have received your request for additional documentation to remove any restricted access which has been placed on our account. Your request was carefully considered. However, we regret we are unable to submit copies of invoices from our supplier(s) without first having a Nondisclosure Agreement from your firm.</p>
<p style="margin-left:40px;font-family:verdana;">Additionally, the privacy of our customers, suppliers, and any third parties, which we might conduct business, is very important to us. We are currently reviewing any Privacy or Confidentiality Agreement we have with our supplier(s) to make sure there is not a breach of contract providing this information to your firm.</p>
<p style="margin-left:40px;font-family:verdana;">With your cooperation of providing us with a Nondisclosure Agreement we will provide the requested documentation. Otherwise we would regrettably have to request our account be formally closed and the remaining balance be returned. You may deduct any monies owed to Ebay, Inc. providing an invoice is submitted along with your instrument.</p>
<p style="margin-left:40px;font-family:verdana;">Thank you for your efforts in resolving this matter.</p>
<p style="margin-left:40px;font-family:verdana;">Sincerely,</p>
<p><span class="sg"></p>
<p style="margin-left:40px;font-family:verdana;">Nathan Wilson</p>
<p></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/104/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/104/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=104&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2007/09/28/my-response-to-paypal/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>
	</item>
		<item>
		<title>WTF is the problem?</title>
		<link>http://afrobot.com/2007/09/01/wtf-is-the-problem/</link>
		<comments>http://afrobot.com/2007/09/01/wtf-is-the-problem/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 10:41:21 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[gay]]></category>

		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://afrobot.com/2007/09/01/wtf-is-the-problem/</guid>
		<description><![CDATA[How about Sen Larry Craig? If it were not for all of these angry back-stabbing republicans are flapping their jaws for this man&#8217;s resignation only because they are just bitter there wasn&#8217;t enough time to get a wiretap started for ol&#8217; Larry before the media got wind of what happened. Then maybe this man might [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>How about <a href="http://news.google.com/news/url?sa=t&amp;ct=us/7-0&amp;fp=46d9236dbf71218a&amp;ei=BjDZRrfNMqb-oALi2fygCA&amp;url=http%3A//www.outsidethebeltway.com/archives/2007/08/what_was_larry_craigs_crime/&amp;cid=1120203923" target="_blank">Sen Larry Craig</a>? If it were not for all of these angry back-stabbing republicans are flapping their jaws for this man&#8217;s resignation only because they are just bitter there wasn&#8217;t enough time to get a <a href="http://www.buzzflash.com/articles/editorials/157" target="_blank">wiretap</a> started for <em>ol&#8217; Larry</em> before the media got wind of what happened. Then maybe this man might have been able to keep his job. I guess their cover up scandal has&nbsp;not come up to bat&nbsp;yet so they should&nbsp;point the finger at the other guy while they can.</p>
<p>But let us compare the <a href="http://edition.cnn.com/2006/POLITICS/06/12/libby.hearing/" target="_blank">mule</a> used for covering up who <strong>really</strong> leaked the identity of a CIA agent to the media and trying to keep the fact your bathroom stall had been raided by an over zealous beat cop.</p>
<p>I am Gay, I don&#8217;t agree with anything this man politics however, I read the <a href="http://www.cnn.com/2007/POLITICS/08/30/craig.transcript/index.html?iref=mpstoryview" target="_blank">transcript</a>&nbsp;of the interview Craig had with the Police about the investigation. It appeared to&nbsp;me the Police&nbsp;kept leading the conversation into making it look like the&nbsp;Defendant was&nbsp;trying to lie.</p>
<p>I am going to ask that people open yourselves up to at least the possibility that this <strike>Hall Monitor</strike>, I mean Beat Cop working the Bathroom Stall scene could have very well seen Craig go to the men&#8217;s bathroom thought this guy could be his ticket out of Bathroom Patrol and&nbsp;followed behind him, then from the next stall over then managed to see enough that could be written into a Police Report to satisfy an arrest. </p>
<p>I know the <a href="http://www.idahopress.com" target="_blank">Idaho Press-Tribune</a>&nbsp;is known for their investigative research did manage to publish an article about the &#8220;<a href="http://www.idahopress.com/news/?id=399" target="_blank">reliable reputation</a>&#8221; of this officer but, I don&#8217;t for a moment believe this man is not envied by the other Beat Cops.</p>
<p>Everyone who is so quick to demand the resignation of this man is foolish to not at least consider the possibility of Craig having ticket out of the Cruising Gay Sex&nbsp; Spots.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/103/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/103/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=103&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2007/09/01/wtf-is-the-problem/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>
	</item>
		<item>
		<title>Is location keeping your real estate property from being leased or sold?</title>
		<link>http://afrobot.com/2007/08/03/is-location-keeping-your-real-estate-property-from-being-leased-or-sold/</link>
		<comments>http://afrobot.com/2007/08/03/is-location-keeping-your-real-estate-property-from-being-leased-or-sold/#comments</comments>
		<pubDate>Sat, 04 Aug 2007 03:09:52 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[New Orleans]]></category>

		<category><![CDATA[craigslist]]></category>

		<category><![CDATA[Funny]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://afrobot.com/2007/08/03/is-location-keeping-your-real-estate-property-from-being-leased-or-sold/</guid>
		<description><![CDATA[Well, so is this guy&#8230; I found this listed on craigslist while apartment hunting in New Orleans.
$540 / 1br - Live Near the Levee
I couldn&#8217;t think of anywhere else I would rather live.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Well, so is this guy&#8230; I found this listed on craigslist while apartment hunting in New Orleans.</p>
<h2><a href="http://neworleans.craigslist.org/apa/388526065.html">$540 / 1br - Live Near the Levee</a></h2>
<p>I couldn&#8217;t think of anywhere else I would rather live.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/101/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/101/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=101&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2007/08/03/is-location-keeping-your-real-estate-property-from-being-leased-or-sold/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>
	</item>
		<item>
		<title>HOW ABOUT THOSE APPLES?</title>
		<link>http://afrobot.com/2007/05/19/how-about-those-apples/</link>
		<comments>http://afrobot.com/2007/05/19/how-about-those-apples/#comments</comments>
		<pubDate>Sat, 19 May 2007 11:00:48 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[Bush]]></category>

		<category><![CDATA[Funny]]></category>

		<category><![CDATA[Iraq]]></category>

		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://afrobot.com/2007/05/19/how-about-those-apples/</guid>
		<description><![CDATA[ U.S. optimistic soldiers are alive
&#8220;&#8230;Four days after the attack, the ambush site remained littered with debris and pieces of armor on a swath of blackened asphalt on a palm-tree lined road, guarded by Humvees&#8230;&#8221;

Can someone remind me again, how long did it start before cleanup efforts took place after 9/11? It is possible to [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote> <a href="http://www.timesleader.com/news/national/20070518_18_iraq_nw_ART.html">U.S. optimistic soldiers are alive</a></p></blockquote>
<blockquote><p><em>&#8220;&#8230;Four days after the attack, the ambush site remained littered with debris and pieces of armor on a swath of blackened asphalt on a palm-tree lined road, guarded by Humvees&#8230;&#8221;</em></p></blockquote>
<blockquote></blockquote>
<p>Can someone remind me again, how long did it start before cleanup efforts took place after 9/11? It is possible to search for survivors and, the site still remain in <em>&#8220;Investigation&#8221;</em> status, correct?</p>
<p>Tags: <a href="http://technorati.com/tag/war,%20iraq,%20idiots,%20bush,%20attack,%20invasion,%20antiwar,%20military">war, iraq, idiots, bush, attack, invasion, antiwar, military</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/100/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/100/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=100&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2007/05/19/how-about-those-apples/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8216;Til Death do us part</title>
		<link>http://afrobot.com/2007/03/20/til-death-do-us-part/</link>
		<comments>http://afrobot.com/2007/03/20/til-death-do-us-part/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 06:05:13 +0000</pubDate>
		<dc:creator>imkite</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

		<category><![CDATA[Television]]></category>

		<guid isPermaLink="false">http://afrobot.com/2007/03/20/til-death-do-us-part/</guid>
		<description><![CDATA[&#160; After I had seen an ad for Court TV&#8217;s new series &#8216;Til Death Do Us Part&#160;starring John Waters, I was really excited about it so, I set an alert in my cell phane to remind me on the premier date. I knew I would totally forget about it otherwise.
&#160;While living in Atlanta I became [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&nbsp; After I had seen an ad for Court TV&#8217;s new series <a title="'Til Death Do Us Part" href="http://www.courttv.com/onair/shows/til_death_do_us_part/index.html">&#8216;Til Death Do Us Part</a>&nbsp;starring <a title="Welcome to Dreamland" href="http://www.dreamlandernews.com">John Waters</a>, I was really excited about it so, I set an alert in my cell phane to remind me on the premier date. I knew I would totally forget about it otherwise.</p>
<p>&nbsp;While living in Atlanta I became a John Waters fan, and an even bigger fan of <a title="The Official Mink Stole Website" href="http://www.minkstole.com">Mink Stole</a>, after my friend Mikey introduced me to his John Waters movie collection. Today makes me miss my friend very much. I wish he were still around because I would have made sure to be in Atlanta so we could watch it together.&nbsp;I sure do miss my Homie.</p>
<p>&nbsp;Since I am still in Houston, I had to surf threw the channels trying to find Court TV, with no such luck. So, I called the Front Desk to see if they would be able to help me locate the channel number. No luck there either, It&#8217;s not one of stations on their line up. </p>
<p>&nbsp;So ended up watching the Law and Order marathon the <a title="USA Network Forums" href="http://forums.usanetwork.com/lofiversion/index.php/t44647.html">networks</a> have every night. I can&#8217;t keep up with the differences of the various series Law and Order has. Star Trek had the same crap like &#8220;Deep Space Nine&#8221; it&#8217;s still Star Trek. At least back in the 90&#8217;s networks didn&#8217;t force the nightly back to back reruns of Star Trek down your throat until <strong>late</strong> at night. It&#8217;s just after the 6:00 news these days. But, it gives my Mother something to watch before the hour of Frasier reruns at 9:00 on UPN, and while waiting for the hour of Fraser at 11:00 on Lifetime.</p>
<p>&nbsp;According to the website, episodes of &#8216;Til Death Do Us Part will be available for download on iTunes on 3/20. So I guess, I will have to finally give-in and download QuickTime and Install iTunes, or wait to catch the rerun when (if) I get home.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Tags: <a href="http://technorati.com/tag/Television, TV, Series, CourtTV, JohnWaters, Dreamland, Video, Entertainment" rel="tag">Television, TV, Series, CourtTV, JohnWaters, Dreamland, Video, Entertainment</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/afro.wordpress.com/99/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/afro.wordpress.com/99/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/afro.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/afro.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/afro.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/afro.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/afro.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/afro.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/afro.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/afro.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/afro.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/afro.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=afrobot.com&blog=175347&post=99&subd=afro&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://afrobot.com/2007/03/20/til-death-do-us-part/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/afro-128.jpg" medium="image">
			<media:title type="html">imkite</media:title>
		</media:content>
	</item>
	</channel>
</rss>