<?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 on: Restful authentication with Rails 2: Usage</title>
	<atom:link href="http://avnetlabs.com/rails/restful-authentication-with-rails-2-usage/feed" rel="self" type="application/rss+xml" />
	<link>http://avnetlabs.com/rails/restful-authentication-with-rails-2-usage</link>
	<description>Accessible web development</description>
	<lastBuildDate>Tue, 05 Jan 2010 09:33:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ekerete</title>
		<link>http://avnetlabs.com/rails/restful-authentication-with-rails-2-usage/comment-page-1#comment-629</link>
		<dc:creator>Ekerete</dc:creator>
		<pubDate>Wed, 03 Jun 2009 18:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/rails/restful-authentication-with-rails-2-usage#comment-629</guid>
		<description>Yes, the logged_in helper is part of the plugin</description>
		<content:encoded><![CDATA[<p>Yes, the logged_in helper is part of the plugin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://avnetlabs.com/rails/restful-authentication-with-rails-2-usage/comment-page-1#comment-628</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 03 Jun 2009 17:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/rails/restful-authentication-with-rails-2-usage#comment-628</guid>
		<description>where is logged_in supposed to be defined? is that a part of the plugin or is that something you&#039;re supposed to define?</description>
		<content:encoded><![CDATA[<p>where is logged_in supposed to be defined? is that a part of the plugin or is that something you&#8217;re supposed to define?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ekerete</title>
		<link>http://avnetlabs.com/rails/restful-authentication-with-rails-2-usage/comment-page-1#comment-230</link>
		<dc:creator>Ekerete</dc:creator>
		<pubDate>Thu, 23 Apr 2009 16:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/rails/restful-authentication-with-rails-2-usage#comment-230</guid>
		<description>I&#039;m afraid that section wasn&#039;t explicit enough. All it&#039;s trying to show is the usage of the logged_in method in a controller action.

The assumption is that a profile model which belongs to a user already exists.
For instance, you would do something like this to get a username:
if logged_in?
  @username = current_user.login
end</description>
		<content:encoded><![CDATA[<p>I&#8217;m afraid that section wasn&#8217;t explicit enough. All it&#8217;s trying to show is the usage of the logged_in method in a controller action.</p>
<p>The assumption is that a profile model which belongs to a user already exists.<br />
For instance, you would do something like this to get a username:<br />
if logged_in?<br />
  @username = current_user.login<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://avnetlabs.com/rails/restful-authentication-with-rails-2-usage/comment-page-1#comment-231</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Thu, 23 Apr 2009 13:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/rails/restful-authentication-with-rails-2-usage#comment-231</guid>
		<description>First off, I&#039;d like to say thank you for an excellent walkthrough of setting up this restful authentication plugin.  I&#039;m very, very new to Rails and this has really helped me to get a running start.

After I had walked through the installation process I was wondering - now how do I plug this into my soon-to-be running app?  Glad to find this second part!

Question - in your &#039;use the plugin methods in your controller&#039; section above, where is the app supposed to find the &#039;profile&#039; method of current user or the &#039;Profile&#039; object?  I&#039;m getting errors trying both methods.

Using @profile = Profile.find(current_user)
&quot;uninitialized constant MPatController::Profile&quot;

Using @profile = current_user.profile
&quot;undefined method `profile&#039; for #&quot;

I see no &#039;profile&#039; method in any of the plugin code.

Please help...thanks!
~</description>
		<content:encoded><![CDATA[<p>First off, I&#8217;d like to say thank you for an excellent walkthrough of setting up this restful authentication plugin.  I&#8217;m very, very new to Rails and this has really helped me to get a running start.</p>
<p>After I had walked through the installation process I was wondering &#8211; now how do I plug this into my soon-to-be running app?  Glad to find this second part!</p>
<p>Question &#8211; in your &#8216;use the plugin methods in your controller&#8217; section above, where is the app supposed to find the &#8216;profile&#8217; method of current user or the &#8216;Profile&#8217; object?  I&#8217;m getting errors trying both methods.</p>
<p>Using @profile = Profile.find(current_user)<br />
&#8220;uninitialized constant MPatController::Profile&#8221;</p>
<p>Using @profile = current_user.profile<br />
&#8220;undefined method `profile&#8217; for #&#8221;</p>
<p>I see no &#8216;profile&#8217; method in any of the plugin code.</p>
<p>Please help&#8230;thanks!<br />
~</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.275 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-01-05 12:57:52 -->
