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

<channel>
	<title>Rails Station</title>
	<atom:link href="http://rstation.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rstation.wordpress.com</link>
	<description>Content Management System Engine</description>
	<lastBuildDate>Mon, 24 Jan 2011 08:18:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rstation.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rails Station</title>
		<link>http://rstation.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rstation.wordpress.com/osd.xml" title="Rails Station" />
	<atom:link rel='hub' href='http://rstation.wordpress.com/?pushpress=hub'/>
		<item>
		<title>0.4 and a new rebuilt</title>
		<link>http://rstation.wordpress.com/2010/06/16/0-4-and-a-new-rebuilt/</link>
		<comments>http://rstation.wordpress.com/2010/06/16/0-4-and-a-new-rebuilt/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 13:57:57 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[0.4]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/?p=84</guid>
		<description><![CDATA[Station is to be rebuilt. After several years of building, the engine is a little big monster doing several things, sometimes pretty well, other times good enough or too much complicated. At this time, several good plugins have appeared in &#8230; <a href="http://rstation.wordpress.com/2010/06/16/0-4-and-a-new-rebuilt/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=84&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Station is to be rebuilt. After several years of building, the engine is a little big monster doing several things, sometimes pretty well, other times good enough or too much complicated.</p>
<p>At this time, several good plugins have appeared in Rails supporting <a href="http://github.com/plataformatec/devise">authentication</a> and <a href="http://github.com/ryanb/cancan">authorization</a>. <a href="http://weblog.rubyonrails.org/2010/6/8/rails-3-0-beta-4-now-rc-in-days">Rails 3.0 is just around the corner</a>. These plugins go in the same way of Station and already support Rails 3.0. In addition, we have started a refactorization of the <a href="http://globaplaza.org/">Virtual Conference Center</a> towards social networking.</p>
<p>So I think is time for a pruning. Delegation authentication and authorization on those plugins and focusing in social networking. The next version of Station will be built on Rails 3 and it will be focused on <a href="http://activitystrea.ms/">Activity Streams</a>.</p>
<p>In the meantime, <a href="http://github.com/atd/station/tree/0.4.0">Station 0.4</a> is released. Several months of development with a lot of bug fixes and a bunch of new features, incluing:</p>
<ul>
<li>Merge of Categories and Tags. Station 0.4 supports tags only.</li>
<li>Ability to initialize Resources with params in the query part of the URL: something like <code>/posts/new?post[text]=Init+text</code> will do what you expect</li>
<li>New SingularAgent: <code>CronAgent<code>.  Suitable for contents generated from cron tasks.</code></code></li>
<li>New rake tasks:
<ul>
<li><code>station:attachment_fu:db2file</code>: Switch from database storage to filesystem storage and so on.</li>
<li><code>station:icons:oxygen:copy</code>: Automate using <a href="http://www.oxygen-icons.org/">Oxygen icons</a> in your application</li>
</ul>
</li>
<li>New method <code>path_container</code>: look up in all params to find a suitable container for a resource</li>
<li>Improved <code>Content::Inquirer</code></li>
<li>Authorization delegate: rely authorization in a relation, for example from a post to its forum.</li>
<li><a href="/2010/03/22/introspecting-uris-html/">HTML inspection</a>: special support for analysis of semantic in HTML documents, in order to extract data from user&#8217;s OpenID and personal web page. Switch to <a href="http://nokogiri.org/">nokogiri</a>/<a href="http://github.com/mwunsch/prism">prism</a>. This work comes from the <a href="http://openid-observatory.dit.upm.es/">OpenID Observatory</a> project.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=84&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2010/06/16/0-4-and-a-new-rebuilt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
		<item>
		<title>Introspecting Uris HTML</title>
		<link>http://rstation.wordpress.com/2010/03/22/introspecting-uris-html/</link>
		<comments>http://rstation.wordpress.com/2010/03/22/introspecting-uris-html/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 16:13:27 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[atom]]></category>
		<category><![CDATA[discovery]]></category>
		<category><![CDATA[foaf]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[microformats]]></category>
		<category><![CDATA[openid]]></category>
		<category><![CDATA[rdf]]></category>
		<category><![CDATA[rsd]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/?p=77</guid>
		<description><![CDATA[I have been working on the support for discovering several kinds of services and resources in HTML. This is part of a short research project we&#8217;ll hopefully launch soon. Station now provides support for discovering this type of services: Microformats, &#8230; <a href="http://rstation.wordpress.com/2010/03/22/introspecting-uris-html/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=77&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have been working on the<a href="http://github.com/atd/station/commit/2819cb3bc68df9b23388fd8208d6ae78dd842a06"> support for discovering several kinds of services and resources in HTML</a>. This is part of a short research project we&#8217;ll hopefully launch soon.</p>
<p>Station now provides support for discovering this type of services:</p>
<ul>
<li><a href="http://microformats.org/">Microformats</a>, semantic markup inside the HTML. Requires the <a href="http://mofo.rubyforge.org/">mofo</a> gem.</li>
<li><a href="http://www.w3.org/RDF/">RDF</a> and <a href="http://www.foaf-project.org/">FoaF</a>, the true Semantic Web</li>
<li>Straightforward and integrated <a href="http://openid.net/">OpenID</a> discovery</li>
<li><a href="http://en.wikipedia.org/wiki/Atom_%28standard%29">Atom</a>, <a href="http://en.wikipedia.org/wiki/Rss">RSS</a> and AtomPub feeds and links.</li>
<li><a href="http://en.wikipedia.org/wiki/Really_Simple_Discovery">Really Simple Discovery</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=77&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2010/03/22/introspecting-uris-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
		<item>
		<title>Containers in the path</title>
		<link>http://rstation.wordpress.com/2010/02/19/containers-in-the-path/</link>
		<comments>http://rstation.wordpress.com/2010/02/19/containers-in-the-path/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 10:57:55 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[URIs]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/?p=69</guid>
		<description><![CDATA[Coinciding with the submission of a paper for the ws://rest.2010, several controller methods have been refactorized. We have made an intensive analysis of use cases of containers in the path, in cases like: /spaces/global/events/meeting/agenda /groups/3/tasks/4/turns The following methods are now &#8230; <a href="http://rstation.wordpress.com/2010/02/19/containers-in-the-path/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=69&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Coinciding with the submission of a paper for the <a href="http://ws-rest.org/">ws://rest.2010</a>, <a href="http://github.com/atd/station/commit/98ce2088101229af55d7c2d7cbb7f8889936b343">several controller methods have been refactorized</a>.</p>
<p>We have made an intensive analysis of use cases of containers in the path, in cases like:</p>
<pre><code>
/spaces/global/events/meeting/agenda
</code></pre>
<pre><code>
/groups/3/tasks/4/turns
</code></pre>
<p>The following methods are now supported:</p>
<p><strong>path_containers</strong> will return an array of all the containers in the path. In the last examples, well get <tt>[ spaces-global, events-meeting ]</tt> and <tt>[ groups-3, tasks-4 ]</tt><br />
<strong>current_container</strong> will search for a container both in path containers, as well as in the containers of current resource. Consider this example:</p>
<pre><code>
/spaces/global/events/meeting/agenda/agenda_entries/2
/events/meetings/agenda_entries/2
/agenda_entries/2

current_container(:type =&gt; :space) #=&gt; returns space-global in all the former cases
</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=69&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2010/02/19/containers-in-the-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
		<item>
		<title>Station 0.3</title>
		<link>http://rstation.wordpress.com/2009/10/20/station-0-3/</link>
		<comments>http://rstation.wordpress.com/2009/10/20/station-0-3/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 15:41:10 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[0.3]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[stable]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/?p=18</guid>
		<description><![CDATA[A new stable version of Rails Station is available. The Content Management System Engine reaches its 0.3 version. Although much work is still pending until the 1.0 release, the engine already provides much functionality. Furthermore, Station is the core of &#8230; <a href="http://rstation.wordpress.com/2009/10/20/station-0-3/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=18&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A new stable version of <a href="/">Rails Station</a> is available. The <em>Content Management System Engine</em> reaches its 0.3 version. Although much work is still pending until the 1.0 release, the engine already provides much functionality. Furthermore, Station is the core of a couple of production websites, including the <a href="http://vcc.dit.upm.es">Virtual Conference Center</a></p>
<p>The major features of this release are:</p>
<ul>
<li><a href="/2009/10/20/new-authorization-framework/">New Authorization Framework</a></li>
<li><a href="/2009/10/20/admissions-invitations-and-join-requests/">Admissions: Invitations and Join Requests</a></li>
<li><a href="/2009/10/14/import-feeds-to-your-containers/">Feed Sources Importation</a></li>
</ul>
<p>There also are a bunch of minor features and fixes, which include:</p>
<ul>
<li>Activate an <code>Agent</code> when resetting his password. Now a user can activate the account and reset the password simultaneously.</li>
<li>The <code>Stage</code> has a new method <code>role(name)</code> to find the roles easier.</li>
<li>ActionMailer is configured with the <code>Site.current.domain</code> automagically</li>
<li><code>vendor/plugins/station/app</code> path is reloadable</li>
<li><code>Performance</code> comes with two callbacks; <code>avoid_downgrading_only_one_with_highest_role</code> and <code>avoid_destroying_only_one_with_highest_role</code>. These will avoid the admin of a <code>Stage</code> leaves it without assigning a new admin first.</li>
</ul>
<p>There is also included a database migration template for upgrading from version 0.2 to 0.3. It can be found at <code>vendor/plugins/station/db/migrate/station_2_to_3.rb</code></p>
<p>Find installation instructions in <a href="http://atd.github.com/station/">Rails Station Homepage</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=18&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2009/10/20/station-0-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
		<item>
		<title>New Authorization Framework</title>
		<link>http://rstation.wordpress.com/2009/10/20/new-authorization-framework/</link>
		<comments>http://rstation.wordpress.com/2009/10/20/new-authorization-framework/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 14:46:06 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[authorization]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/?p=23</guid>
		<description><![CDATA[These days I&#8217;ve working in a new Authorization Framework for Rails Station. After trying with ACLs and suffering from some scalability issues, the final version seems to be stable. Like previous versions, you can protect your controller actions using authorization_filter &#8230; <a href="http://rstation.wordpress.com/2009/10/20/new-authorization-framework/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=23&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>These days I&#8217;ve working in a new Authorization Framework for Rails Station.</p>
<p>After trying with <a href="http://en.wikipedia.org/wiki/Access_control_list">ACLs</a> and suffering from some scalability issues, the final version seems to be stable.</p>
<p>Like previous versions, you can protect your controller actions using <code>authorization_filter</code></p>
<pre><code>class PostsController
  authorization_filter :read, :post, :only =&gt; [ :show ]
end</code></pre>
<p>Authorization is defined in each  <strong>model</strong> using <code>authorizing</code> declarations:</p>
<pre><code>class Post
  authorizing do |user, permission|
    # Allow all actions to the author of the Post
    if user == agent
      true
    end
  end
end
</code></pre>
<p>You can define and chain all the <code>authorizing</code> declarations you need. These declarations build an authorization chain, which is evaluated from the first one until one of the declarations returns <code>true</code> or <code>false</code>.</p>
<p>This is the response you get when calling:</p>
<pre><code>post.authorize? :read, :to =&gt; user
</code></pre>
<p>Station comes with two default declarations:</p>
<ul>
<li>When a model <code>acts_as_stage</code>, the authorization queries will look for the permissions of the role the user is playing in the Stage</li>
<li>When a model <code>acts_as_content</code>, the authorization will query the Container</li>
</ul>
<p>You can check the <a href="http://atd.github.com/station/rdoc">documentation</a> for more information about authorization in <a href="/">Station</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=23&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2009/10/20/new-authorization-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
		<item>
		<title>Admissions: Invitations and Join Requests</title>
		<link>http://rstation.wordpress.com/2009/10/20/admissions-invitations-and-join-requests/</link>
		<comments>http://rstation.wordpress.com/2009/10/20/admissions-invitations-and-join-requests/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 10:43:26 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[admissions]]></category>
		<category><![CDATA[invitations]]></category>
		<category><![CDATA[join requests]]></category>
		<category><![CDATA[stages]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/?p=24</guid>
		<description><![CDATA[One of the new major features of Station 0.3 is Admissions. Admissions gather the proccess of joining a Stage. There are two classes of Admissions: Invitations: The new participant is contacted by email, providing a link where s/he can accept &#8230; <a href="http://rstation.wordpress.com/2009/10/20/admissions-invitations-and-join-requests/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=24&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>One of the new major features of Station 0.3 is <strong>Admissions</strong>.</p>
<p><strong>Admissions</strong> gather the proccess of <em>joining a Stage</em>. There are two classes of Admissions:</p>
<ul>
<li><strong>Invitations</strong>: The new participant is contacted by email, providing a link where s/he can accept or deny the invitation. The role the new participant is playing in the Stage is preset in the Invitation request</li>
<li><strong>Join Requests</strong>: The new participant requests the Stage admins s/he wants to participate in the Stage. The admins accept or deny the request.</li>
</ul>
<p>Admissions basic support is already included in master and will be part of Station 0.3</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=24&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2009/10/20/admissions-invitations-and-join-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
		<item>
		<title>Import Feeds to your Containers</title>
		<link>http://rstation.wordpress.com/2009/10/14/import-feeds-to-your-containers/</link>
		<comments>http://rstation.wordpress.com/2009/10/14/import-feeds-to-your-containers/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 15:29:20 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[atom]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/?p=20</guid>
		<description><![CDATA[Station provides basic (and still in development) support for Atom/RSS feeds. You can import feeds to your Containers and create new Contents from each Atom/RSS element. A Container is any model that give context to other models. Lets take the &#8230; <a href="http://rstation.wordpress.com/2009/10/14/import-feeds-to-your-containers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=20&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Station provides basic (and still in development) support for Atom/RSS feeds. You can import feeds to your Containers and create new Contents from each Atom/RSS element.</p>
<p>A Container is any model that give context to other models. Lets take the following example:</p>
<pre><code>class Space
  has_many :posts
end</code></pre>
<p>The has_many relation indicates Space is probably a Container.  If a posts always belongs_to a space, then you have it. Space is a Container.</p>
<p>Station provides an easy way to import feeds to your Containers. This is achieved by the Sources support.</p>
<p><strong>Add the sources table to your database. </strong><br />
The sources table is defined in station/db/migrate/station_2_to_3.rb and will be included in the next version of the Station migration schema.</p>
<p><strong>Indicate Station that your Space is a Container and it supports Sources.<br />
</strong></p>
<p>Just add the suitable option to the container declaration:</p>
<pre><code>class Space
  has_many :posts
  acts_as_container :sources =&gt; true
end
</code></pre>
<p><strong>Write the Atom Parser in your models</strong></p>
<p>You&#8217;ll have to describe the conversion between the source feed elements and your models. This is easily achieved using the <em>params_from_atom</em> function</p>
<pre><code>
class Posts
  def self.params_from_atom(entry)
    { :title =&gt; entry.title.to_s,
       :text =&gt; entry.content.to_s }
  end
end
</code></pre>
<p>And that&#8217;s it! Now you can visit <code>/spaces/1/sources</code> and automatically add new Posts to your Spaces.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=20&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2009/10/14/import-feeds-to-your-containers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
		<item>
		<title>Named_scope clashing with ActiveSupport</title>
		<link>http://rstation.wordpress.com/2009/06/18/named_scope-clashing-with-activesupport/</link>
		<comments>http://rstation.wordpress.com/2009/06/18/named_scope-clashing-with-activesupport/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 13:12:19 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[named_scope]]></category>
		<category><![CDATA[resource]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/2009/06/18/named_scope-clashing-with-activesupport/</guid>
		<description><![CDATA[One of the named_scope defined by Station was parents. It simply scoped searches in Resources to records that haven&#8217;t a parent_id defined. This is useful for Posts or AttachmentFu records (which makes thumbnails with the parent_id). The name &#8220;parents&#8221; was &#8230; <a href="http://rstation.wordpress.com/2009/06/18/named_scope-clashing-with-activesupport/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=16&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>One of the <i>named_scope</i> defined by <a href="http://atd.github.com/station/">Station</a> was <b>parents</b>. It simply scoped searches in Resources to records that haven&#8217;t a <i>parent_id</i> defined. This is useful for Posts or AttachmentFu records (which makes thumbnails with the parent_id).</p>
<p>The name &#8220;<i>parents</i>&#8221; was unfortunate, as it clashes with a method in ActiveSupport::CoreExtensions::Module</p>
<p>So the named_scope has been renamed to &#8220;<b>parent_scoped</b>&#8220;. You are encourage to upgrade to the new stable version, <a href="http://github.com/atd/station/tree/0.2.3">Station 0.2.3</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=16&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2009/06/18/named_scope-clashing-with-activesupport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting several AR objects in one query: ActiveRecord::Content::Inquirer</title>
		<link>http://rstation.wordpress.com/2009/06/17/getting-several-ar-objects-in-one-query-activerecordcontentinquirer/</link>
		<comments>http://rstation.wordpress.com/2009/06/17/getting-several-ar-objects-in-one-query-activerecordcontentinquirer/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 12:23:52 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[content]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/2009/06/17/getting-several-ar-objects-in-one-query-activerecordcontentinquirer/</guid>
		<description><![CDATA[There are some issues already included in Station I want to blog, because I think they are interesting. One of them is ActiveRecord::Content::Inquirer In Station, a container is an ActiveRecord model that have many contents, like posts, images, videos, bookmarks, &#8230; <a href="http://rstation.wordpress.com/2009/06/17/getting-several-ar-objects-in-one-query-activerecordcontentinquirer/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=10&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>There are some issues already included in <a href="http://atd.github.com/station/">Station</a> I want to blog, because I think they are interesting.<br />
One of them is <b>ActiveRecord::Content::Inquirer</b></p>
<p>In <a href="http://atd.github.com/station/">Station</a>, a container is an ActiveRecord model that have many contents, like posts, images, videos, bookmarks, etc.. What if you want to obtain all the contents in a Container using just one SQL query? And you also want to paginate them? And, of course, getting back instances of every Content!</p>
<p>ActiveRecord::Content::Inquirer does just this. You use it:</p>
<pre>
<code>
ActiveRecord::Content::Inquirer.all :container =&gt; somespace,
                                    :page =&gt; params[:page],
                                    :per_page =&gt; 10
</code></pre>
<p>It even accepts an Array in :container.</p>
<p>Some of the magic is under this hack:</p>
<pre><code>
class Inquirer &lt; ActiveRecord::Base
  @colums = Array.new
  @columns_hash = { "type" =&gt; :fake }


  ...
end
</code></pre>
<p>This way, it&#8217;s possible to use ActiveRecord::Base goodies without a real table in the database.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=10&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2009/06/17/getting-several-ar-objects-in-one-query-activerecordcontentinquirer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
		<item>
		<title>Initializing&#8230;</title>
		<link>http://rstation.wordpress.com/2009/06/15/initializing/</link>
		<comments>http://rstation.wordpress.com/2009/06/15/initializing/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 14:35:16 +0000</pubDate>
		<dc:creator>Antonio Tapiador</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[init]]></category>

		<guid isPermaLink="false">http://rstation.wordpress.com/2009/06/15/initializing/</guid>
		<description><![CDATA[I&#8217;ve opened this blog to write about Rails Station development. Station is a Rails Engine (a plugin with app/, routes and more) focused on Content Management. Station provides your Rails application with a CMS framework, this means authentication, authorization, categories, &#8230; <a href="http://rstation.wordpress.com/2009/06/15/initializing/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=3&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve opened this blog to write about <a href="http://atd.github.com/station/">Rails Station</a> development.</p>
<p>Station is a <a href="http://rails-engines.org/">Rails Engine</a> (a plugin with app/, routes and more) focused on Content Management. Station provides your Rails application with a CMS framework, this means authentication, authorization, categories, tags, etc&#8230;</p>
<p>This development is part of the work in my Ph.D thesis, which is about distributed social software, so I plan to add more features following that way.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rstation.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rstation.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rstation.wordpress.com&#038;blog=8183153&#038;post=3&#038;subd=rstation&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rstation.wordpress.com/2009/06/15/initializing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/fbdd0d26ec0146cbe4e22318fc5341b5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">atd</media:title>
		</media:content>
	</item>
	</channel>
</rss>
