<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Sentia | 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</title>
	<atom:link href="http://sentia.com.au/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://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>Tue, 02 Feb 2010 23:44:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Ajax.Updater and javascript by Michael Cindric</title>
		<link>http://sentia.com.au/2009/03/ajaxupdater-and-javascript/comment-page-1/#comment-212</link>
		<dc:creator>Michael Cindric</dc:creator>
		<pubDate>Tue, 02 Feb 2010 23:44:53 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=123#comment-212</guid>
		<description>Test it out and let me know if l can do anything more to help</description>
		<content:encoded><![CDATA[<p>Test it out and let me know if l can do anything more to help</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ajax.Updater and javascript by Wilson</title>
		<link>http://sentia.com.au/2009/03/ajaxupdater-and-javascript/comment-page-1/#comment-211</link>
		<dc:creator>Wilson</dc:creator>
		<pubDate>Tue, 02 Feb 2010 15:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=123#comment-211</guid>
		<description>Actually it seems that I have a similar problem but I don&#039;t know if tbe cculprit has something to do with the eval thing haven&#039;t tested it yet. It&#039;s been boggling my mind up to now. My Ajax.Updater statements are erratic. Sometimes they execute, but when I reupload the same files into the server (no code modifications) they do not execute. I don&#039;t know the reason. I hosted my site on on e of the free hosting sites. After I reupload the files those Ajax.Updaters do not execute, after several minutes when I opened the pages again in the browser, they execute. Recently I got a new host and reuploaded the same website files after which I tested it and they do not execute! I was looking for s solution to this on Google till I found this page.</description>
		<content:encoded><![CDATA[<p>Actually it seems that I have a similar problem but I don&#8217;t know if tbe cculprit has something to do with the eval thing haven&#8217;t tested it yet. It&#8217;s been boggling my mind up to now. My Ajax.Updater statements are erratic. Sometimes they execute, but when I reupload the same files into the server (no code modifications) they do not execute. I don&#8217;t know the reason. I hosted my site on on e of the free hosting sites. After I reupload the files those Ajax.Updaters do not execute, after several minutes when I opened the pages again in the browser, they execute. Recently I got a new host and reuploaded the same website files after which I tested it and they do not execute! I was looking for s solution to this on Google till I found this page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scoping UserSession with Authlogic by James Kong</title>
		<link>http://sentia.com.au/2009/09/scoping-usersession-with-authlogic/comment-page-1/#comment-210</link>
		<dc:creator>James Kong</dc:creator>
		<pubDate>Fri, 04 Dec 2009 05:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=498#comment-210</guid>
		<description>Sorry I&#039;m a little unclear on your question.

If you use the above method, you do not need to use a with_scope on UserSession.

By placing &#039;authenticates_many :user_sessions&#039; in the Account model, Authlogic creates an association between the Account and the UserSession and some other magic behind the scenes/.

So now you can call &#039;@current_account.user_sessions.build&#039; to scope it to the account.

I assume if you want to call &#039;UserSession.build&#039; and have it automatically scope to account, then you would need with_scope, but are there any benefits of not going through the account/usersession relationship?</description>
		<content:encoded><![CDATA[<p>Sorry I&#8217;m a little unclear on your question.</p>
<p>If you use the above method, you do not need to use a with_scope on UserSession.</p>
<p>By placing &#8216;authenticates_many :user_sessions&#8217; in the Account model, Authlogic creates an association between the Account and the UserSession and some other magic behind the scenes/.</p>
<p>So now you can call &#8216;@current_account.user_sessions.build&#8217; to scope it to the account.</p>
<p>I assume if you want to call &#8216;UserSession.build&#8217; and have it automatically scope to account, then you would need with_scope, but are there any benefits of not going through the account/usersession relationship?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scoping UserSession with Authlogic by Shaun Brazier</title>
		<link>http://sentia.com.au/2009/09/scoping-usersession-with-authlogic/comment-page-1/#comment-209</link>
		<dc:creator>Shaun Brazier</dc:creator>
		<pubDate>Thu, 03 Dec 2009 10:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=498#comment-209</guid>
		<description>Thanks for taking the time to clarify this.

I&#039;m still a little confused about what you should use to find the current session though? In the Authlogic docs it seems that you&#039;re meant to do a with_scope find, like this (in ApplicationController to find current_session):

UserSession.with_scope(:find_options =&gt; {:conditions =&gt; &quot;account_id = #{current_account.id}&quot;}, :id =&gt; &quot;account_#{current_account.id}&quot;) do
          UserSession.find
 end

But when I try and implement this I don&#039;t seem to be able to login. Or rather, the login validates but then I&#039;m sent straight back to the login.

Do we even need to use the above or am I getting confused with something?!

Refer to: http://rdoc.info/rdoc/binarylogic/authlogic/blob/f2e95179acf87f11b44c7a58e6083cf84cddff27/Authlogic/Session/Scopes/ClassMethods.html</description>
		<content:encoded><![CDATA[<p>Thanks for taking the time to clarify this.</p>
<p>I&#8217;m still a little confused about what you should use to find the current session though? In the Authlogic docs it seems that you&#8217;re meant to do a with_scope find, like this (in ApplicationController to find current_session):</p>
<p>UserSession.with_scope(:find_options =&gt; {:conditions =&gt; &#8220;account_id = #{current_account.id}&#8221;}, :id =&gt; &#8220;account_#{current_account.id}&#8221;) do<br />
          UserSession.find<br />
 end</p>
<p>But when I try and implement this I don&#8217;t seem to be able to login. Or rather, the login validates but then I&#8217;m sent straight back to the login.</p>
<p>Do we even need to use the above or am I getting confused with something?!</p>
<p>Refer to: <a href="http://rdoc.info/rdoc/binarylogic/authlogic/blob/f2e95179acf87f11b44c7a58e6083cf84cddff27/Authlogic/Session/Scopes/ClassMethods.html" rel="nofollow">http://rdoc.info/rdoc/binarylogic/authlogic/blob/f2e95179acf87f11b44c7a58e6083cf84cddff27/Authlogic/Session/Scopes/ClassMethods.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When to use Nested Controllers in your Rails apps by Michael Cindric</title>
		<link>http://sentia.com.au/2009/09/when-to-use-nested-controllers-in-your-rails-apps/comment-page-1/#comment-208</link>
		<dc:creator>Michael Cindric</dc:creator>
		<pubDate>Wed, 25 Nov 2009 21:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=575#comment-208</guid>
		<description>Thats right you still have the one model as the model is the interaction with the DB. You can create another model can set it to speak with the same tables but better to have just the one model and 2 controllers as the controllers handle the interaction for the users</description>
		<content:encoded><![CDATA[<p>Thats right you still have the one model as the model is the interaction with the DB. You can create another model can set it to speak with the same tables but better to have just the one model and 2 controllers as the controllers handle the interaction for the users</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Comatose, Authlogic and FCKEditor by Michael Cindric</title>
		<link>http://sentia.com.au/2009/08/comatose-authlogic-and-fckeditor/comment-page-1/#comment-207</link>
		<dc:creator>Michael Cindric</dc:creator>
		<pubDate>Wed, 25 Nov 2009 21:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=309#comment-207</guid>
		<description>The UserMethods module can be saved in the lib folder of your app dir</description>
		<content:encoded><![CDATA[<p>The UserMethods module can be saved in the lib folder of your app dir</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on When to use Nested Controllers in your Rails apps by Joe</title>
		<link>http://sentia.com.au/2009/09/when-to-use-nested-controllers-in-your-rails-apps/comment-page-1/#comment-206</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 25 Nov 2009 12:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=575#comment-206</guid>
		<description>I like it!  Something is still missing for me though.  This technique separates admin_user code from front end user code.

So this means we have one model, and two controllers: a normal scaffolded user (not mentioned above) and the admin bits you describe above?</description>
		<content:encoded><![CDATA[<p>I like it!  Something is still missing for me though.  This technique separates admin_user code from front end user code.</p>
<p>So this means we have one model, and two controllers: a normal scaffolded user (not mentioned above) and the admin bits you describe above?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Comatose, Authlogic and FCKEditor by Adinda</title>
		<link>http://sentia.com.au/2009/08/comatose-authlogic-and-fckeditor/comment-page-1/#comment-205</link>
		<dc:creator>Adinda</dc:creator>
		<pubDate>Tue, 17 Nov 2009 05:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=309#comment-205</guid>
		<description>Sorry i don&#039;t get it. I&#039;m asking the module code, where should i save it?</description>
		<content:encoded><![CDATA[<p>Sorry i don&#8217;t get it. I&#8217;m asking the module code, where should i save it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Comatose, Authlogic and FCKEditor by Michael Cindric</title>
		<link>http://sentia.com.au/2009/08/comatose-authlogic-and-fckeditor/comment-page-1/#comment-204</link>
		<dc:creator>Michael Cindric</dc:creator>
		<pubDate>Mon, 16 Nov 2009 10:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=309#comment-204</guid>
		<description>Thats right is works using Authlogic. The config code for FCKEditor and Authlogic goes in the environment.rb file there is an example of the config code</description>
		<content:encoded><![CDATA[<p>Thats right is works using Authlogic. The config code for FCKEditor and Authlogic goes in the environment.rb file there is an example of the config code</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Comatose, Authlogic and FCKEditor by Adinda</title>
		<link>http://sentia.com.au/2009/08/comatose-authlogic-and-fckeditor/comment-page-1/#comment-203</link>
		<dc:creator>Adinda</dc:creator>
		<pubDate>Mon, 16 Nov 2009 09:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://sentia.com.au/?p=309#comment-203</guid>
		<description>Nice post. I&#039;d really like to try this out. Is the module code based on authlogic? where should i put this code? Thanks!</description>
		<content:encoded><![CDATA[<p>Nice post. I&#8217;d really like to try this out. Is the module code based on authlogic? where should i put this code? Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
