<?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>Nobody Listens Anyway &#187; protect_from_forgery</title>
	<atom:link href="http://www.justinball.com/tag/protect_from_forgery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinball.com</link>
	<description>Life is an optimization issue</description>
	<lastBuildDate>Sat, 31 Jul 2010 16:47:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
		<item>
		<title>secret given to the #protect_from_forgery call</title>
		<link>http://www.justinball.com/2008/02/07/secret-given-to-the-protect_from_forgery-call/</link>
		<comments>http://www.justinball.com/2008/02/07/secret-given-to-the-protect_from_forgery-call/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 19:30:09 +0000</pubDate>
		<dc:creator>Justin Ball</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[protect_from_forgery]]></category>
		<category><![CDATA[sessions]]></category>

		<guid isPermaLink="false">http://www.justinball.com/2008/02/07/secret-given-to-the-protect_from_forgery-call/</guid>
		<description><![CDATA[My code was running fine under Rails 2.0.2.  Then I enabled the db based session store by uncommenting this:

  config.action_controller.session_store = :active_record_store

in environment.rb.
Anything that used the session after that gave me this error:

No :secret given to the #protect_from_forgery call.  Set that or use a session store capable of generating its own keys [...]]]></description>
			<content:encoded><![CDATA[<p>My code was running fine under Rails 2.0.2.  Then I enabled the db based session store by uncommenting this:<br />
<code><br />
  config.action_controller.session_store = :active_record_store<br />
</code><br />
in environment.rb.</p>
<p>Anything that used the session after that gave me this error:<br />
<code><br />
No :secret given to the #protect_from_forgery call.  Set that or use a session store capable of generating its own keys (Cookie Session Store).<br />
</code></p>
<p>If you have the same problem.  Go to application.rb and uncomment the secret then restart.</p>
<p>All better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinball.com/2008/02/07/secret-given-to-the-protect_from_forgery-call/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
	</channel>
</rss>
