<?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 Cameron Stitt</title>
	<atom:link href="http://blog.castitt.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.castitt.com</link>
	<description>Just another Web Developer blog</description>
	<lastBuildDate>Mon, 12 Dec 2011 04:58:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on LINQ to SQL by Cameron</title>
		<link>http://blog.castitt.com/2011/09/linq-to-sql/comment-page-1/#comment-140</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Mon, 12 Dec 2011 04:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=70#comment-140</guid>
		<description>I will have to try it out. So far I have found no major problems with LINQ2SQL and therefore haven&#039;t felt the need to move away from it. Maybe if I try ADO.Net I will be convinced otherwise. Thanks for the recommendation.</description>
		<content:encoded><![CDATA[<p>I will have to try it out. So far I have found no major problems with LINQ2SQL and therefore haven&#8217;t felt the need to move away from it. Maybe if I try ADO.Net I will be convinced otherwise. Thanks for the recommendation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on LINQ to SQL by Adam</title>
		<link>http://blog.castitt.com/2011/09/linq-to-sql/comment-page-1/#comment-139</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 12 Dec 2011 03:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=70#comment-139</guid>
		<description>You should have a look at the ADO.NET Entity Framework. While LINQ2SQL is still supported, the Entity Framework is Microsoft&#039;s flagship data access framework.</description>
		<content:encoded><![CDATA[<p>You should have a look at the ADO.NET Entity Framework. While LINQ2SQL is still supported, the Entity Framework is Microsoft&#8217;s flagship data access framework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Authlogic Issues With Rails 3 by Andrew</title>
		<link>http://blog.castitt.com/2010/11/some-gem-issues-with-rails-3/comment-page-1/#comment-111</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Wed, 19 Jan 2011 10:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=34#comment-111</guid>
		<description>the simplest solution is to include ActiveModel modules for conversion and naming:
class UserSession &lt; Authlogic::Session::Base
  include ActiveModel::Conversion
  extend ActiveModel::Naming
  
  def persisted?
    false
  end
end

see Railscast #219 http://railscasts.com/episodes/219-active-model</description>
		<content:encoded><![CDATA[<p>the simplest solution is to include ActiveModel modules for conversion and naming:<br />
class UserSession &lt; Authlogic::Session::Base<br />
  include ActiveModel::Conversion<br />
  extend ActiveModel::Naming</p>
<p>  def persisted?<br />
    false<br />
  end<br />
end</p>
<p>see Railscast #219 <a href="http://railscasts.com/episodes/219-active-model" rel="nofollow">http://railscasts.com/episodes/219-active-model</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Date Selection for Ruby on Rails by Sara</title>
		<link>http://blog.castitt.com/2010/04/date-selection-for-ruby-on-rails/comment-page-1/#comment-110</link>
		<dc:creator>Sara</dc:creator>
		<pubDate>Thu, 06 Jan 2011 02:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=12#comment-110</guid>
		<description>OMG! You are so right and I am so glad that it isn&#039;t just me. I am new to rails and I was beginning to wonder if there was something that I was missing with this date and time crap.</description>
		<content:encoded><![CDATA[<p>OMG! You are so right and I am so glad that it isn&#8217;t just me. I am new to rails and I was beginning to wonder if there was something that I was missing with this date and time crap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Authlogic Issues With Rails 3 by Jonah</title>
		<link>http://blog.castitt.com/2010/11/some-gem-issues-with-rails-3/comment-page-1/#comment-109</link>
		<dc:creator>Jonah</dc:creator>
		<pubDate>Thu, 30 Dec 2010 18:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=34#comment-109</guid>
		<description>Thanks Cameron! This was exactly what I needed.</description>
		<content:encoded><![CDATA[<p>Thanks Cameron! This was exactly what I needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deploying Your Ruby on Rails Application Using Git and Capistrano by Andy Callebs</title>
		<link>http://blog.castitt.com/2010/07/deploying-your-ruby-on-rails-application-using-git-and-capistrano/comment-page-1/#comment-105</link>
		<dc:creator>Andy Callebs</dc:creator>
		<pubDate>Sun, 14 Nov 2010 06:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=26#comment-105</guid>
		<description>Just wanted to say that this helped me out tremendously. Deploying my first rails app tonight and this was a godsend. :)</description>
		<content:encoded><![CDATA[<p>Just wanted to say that this helped me out tremendously. Deploying my first rails app tonight and this was a godsend. <img src='http://blog.castitt.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Friendly URL&#8217;s with Ruby on Rails by Cameron</title>
		<link>http://blog.castitt.com/2010/10/friendly-urls-with-ruby-on-rails/comment-page-1/#comment-101</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Sun, 31 Oct 2010 00:43:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=31#comment-101</guid>
		<description>Thanks for the question Peter. If you use the to_param method, you must use the Id still which can pose a problem if you have large id&#039;s or if you just didn&#039;t want the id to be displayed. If you choose to not use the Id and just use the name in to_param then you will have to go through the process of changing ALL links to search by the name instead of the id (eg. Project.find_by_name(params[:name])). This would be another step of work that you would have to remember to do all the time. If you use the friendly-id gem, you do not have to change any settings on how objects are found.</description>
		<content:encoded><![CDATA[<p>Thanks for the question Peter. If you use the to_param method, you must use the Id still which can pose a problem if you have large id&#8217;s or if you just didn&#8217;t want the id to be displayed. If you choose to not use the Id and just use the name in to_param then you will have to go through the process of changing ALL links to search by the name instead of the id (eg. Project.find_by_name(params[:name])). This would be another step of work that you would have to remember to do all the time. If you use the friendly-id gem, you do not have to change any settings on how objects are found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Friendly URL&#8217;s with Ruby on Rails by Peter</title>
		<link>http://blog.castitt.com/2010/10/friendly-urls-with-ruby-on-rails/comment-page-1/#comment-100</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 30 Oct 2010 18:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=31#comment-100</guid>
		<description>Nice article, but what advantage does this gem have above overriding the to_param method of activerecord?

for example:
def to_param
  &quot;#{id}-#{name}&quot;
end</description>
		<content:encoded><![CDATA[<p>Nice article, but what advantage does this gem have above overriding the to_param method of activerecord?</p>
<p>for example:<br />
def to_param<br />
  &#8220;#{id}-#{name}&#8221;<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Many to Many Associations in Ruby on Rails by Cameron</title>
		<link>http://blog.castitt.com/2010/04/many-to-many-associations-in-ruby-on-rails/comment-page-1/#comment-99</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Tue, 26 Oct 2010 03:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=14#comment-99</guid>
		<description>I forgot to mention in the post that you need a model for the Loan migration in the has many through method. You could then use a fields for tag in one of the other classes etc. I&#039;ll leave it at that for you to work out how to complete it.</description>
		<content:encoded><![CDATA[<p>I forgot to mention in the post that you need a model for the Loan migration in the has many through method. You could then use a fields for tag in one of the other classes etc. I&#8217;ll leave it at that for you to work out how to complete it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Many to Many Associations in Ruby on Rails by Cameron</title>
		<link>http://blog.castitt.com/2010/04/many-to-many-associations-in-ruby-on-rails/comment-page-1/#comment-98</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Tue, 26 Oct 2010 02:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.castitt.com/?p=14#comment-98</guid>
		<description>I think you need to have another look at how the relationships are working or how you have worded your question. Firstly, where does the student model link in with all of this?

A quick answer off the top of my head would be to use the find method or even the find_by_sql method as found here http://guides.rubyonrails.org/active_record_querying.html#finding-by-sql. I can&#039;t really answer it in detail until I understand how everything is working exactly. Feel free to send me an email with some source code so I can help you out.</description>
		<content:encoded><![CDATA[<p>I think you need to have another look at how the relationships are working or how you have worded your question. Firstly, where does the student model link in with all of this?</p>
<p>A quick answer off the top of my head would be to use the find method or even the find_by_sql method as found here <a href="http://guides.rubyonrails.org/active_record_querying.html#finding-by-sql" rel="nofollow">http://guides.rubyonrails.org/active_record_querying.html#finding-by-sql</a>. I can&#8217;t really answer it in detail until I understand how everything is working exactly. Feel free to send me an email with some source code so I can help you out.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

