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

<channel>
	<title>Sentia &#124; Sydney IT Consultancy, Software Development, Ruby on Rails, Web Application Development, Rails Development, Test Driven Development, Microsoft.Net, Asp.Net , Agile, Continuous Integration Training, iPhone development &#187; Uncategorized</title>
	<atom:link href="http://www.sentia.com.au/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sentia.com.au</link>
	<description>Sentia company website and blog about all things development, Ruby on Rails, Microsoft .Net, ASP.Net, C#.Net, Agile web development, Test Driven Development</description>
	<lastBuildDate>Fri, 27 Aug 2010 05:10:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Why dropbox makes life easier</title>
		<link>http://www.sentia.com.au/2010/08/why-dropbox-makes-life-easier/</link>
		<comments>http://www.sentia.com.au/2010/08/why-dropbox-makes-life-easier/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 01:05:10 +0000</pubDate>
		<dc:creator>Michael Cindric</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.sentia.com.au/?p=783</guid>
		<description><![CDATA[We have been using DropBox for a while now and it has made life a lot easier. This is a great little tool to have allowing you to easily manage your files across multiple computers and is a must for an IT business especially one on the go like Sentia.
I would encourage everyone to check [...]]]></description>
			<content:encoded><![CDATA[<p>We have been using <a href="http://DropBox.com">DropBox</a> for a while now and it has made life a lot easier. This is a great little tool to have allowing you to easily manage your files across multiple computers and is a must for an IT business especially one on the go like Sentia.</p>
<p>I would encourage everyone to check it out</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2010/08/why-dropbox-makes-life-easier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scoping UserSession with Authlogic</title>
		<link>http://www.sentia.com.au/2009/09/scoping-usersession-with-authlogic/</link>
		<comments>http://www.sentia.com.au/2009/09/scoping-usersession-with-authlogic/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 06:44:28 +0000</pubDate>
		<dc:creator>James Kong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[authlogic]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://sentia.com.au/?p=498</guid>
		<description><![CDATA[I like using subdomains to create a more personalised web application experience for the user. Having their own URL to access the application allows them to feel a sense of ownership. There are many ways you can do this(click here for one) but I specifically want to look at scoping your user sessions so that [...]]]></description>
			<content:encoded><![CDATA[<p>I like using subdomains to create a more personalised web application experience for the user. Having their own URL to access the application allows them to feel a sense of ownership. There are many ways you can do this(<a href="http://37signals.com/svn/posts/1512-how-to-do-basecamp-style-subdomains-in-rails">click here for one</a>) but I specifically want to look at scoping your user sessions so that users cannot login to other user&#8217;s accounts. Doing this with <a title="AuthLogic" href="http://github.com/binarylogic/authlogic" target="_self">AuthLogic</a> is surprisingly easy.</p>
<p>Assuming you subdomain names come from an Account model, add this line of code.</p>
<pre class="brush: ruby;">
   class Account &lt; ActiveRecord::Base
   authenticates_many :user_sessions
end
</pre>
<p>In your UserSessionController you can now scope your user sessions to the account.</p>
<pre class="brush: ruby;">

class UserSessionsController &lt; ApplicationController

    def create
       @user_session = @current_account.user_sessions.build(params[:user_session])
       if @user_session.save
          flash[:notice] = &quot;Login successful!&quot;
          redirect_back_or_default dashboard_path
        else
          render :action =&gt; :new
        end
    end
end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sentia.com.au/2009/09/scoping-usersession-with-authlogic/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
