<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'problems with Encrypt Sensitive Data and rails 2.0.2? Errno::ENOENT: No such file or directory - /Users/jane/Development/actsassecure/config/crypto.yml  ' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/43/topics/324</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>problems with Encrypt Sensitive Data and rails 2.0.2? Errno::ENOENT: No such file or directory - /Users/jane/Development/actsassecure/config/crypto.yml   posted by Mike Clark @ Thu, 27 Mar 2008 17:03:26 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;ve added crypto.yml to the recipe to avoid future confusion.&lt;/p&gt;


	&lt;p&gt;Thanks!&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Thu, 27 Mar 2008 17:03:26 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:324:2497</guid>
      <author>Mike Clark</author>
      <link>http://forums.pragprog.com/forums/43/topics/324</link>
    </item>
    <item>
      <title>problems with Encrypt Sensitive Data and rails 2.0.2? Errno::ENOENT: No such file or directory - /Users/jane/Development/actsassecure/config/crypto.yml   posted by Charles Harvey @ Sat, 22 Mar 2008 04:59:04 -0000</title>
      <description>&lt;p&gt;Hi Mike-&lt;/p&gt;


	&lt;p&gt;Thanks.  I could not find the details of the crypto.yml file in the recipe.  Your update here is a great help.&lt;/p&gt;


	&lt;p&gt;Best Regards-&lt;/p&gt;


	&lt;p&gt;Charles&lt;/p&gt;</description>
      <pubDate>Sat, 22 Mar 2008 04:59:04 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:324:2472</guid>
      <author>Charles Harvey</author>
      <link>http://forums.pragprog.com/forums/43/topics/324</link>
    </item>
    <item>
      <title>problems with Encrypt Sensitive Data and rails 2.0.2? Errno::ENOENT: No such file or directory - /Users/jane/Development/actsassecure/config/crypto.yml   posted by Mike Clark @ Fri, 21 Mar 2008 13:17:37 -0000</title>
      <description>&lt;p&gt;Charles -&lt;/p&gt;


	&lt;p&gt;Does your crypto.yml file look like this?&lt;/p&gt;


&lt;pre&gt;
&lt;code&gt;
development:
  master_key: YOUR_SECRET_MASTER_KEY
  salt: YOUR_SALT
&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;

	&lt;p&gt;That&amp;#8217;s the format the MasterCryptoProvider class in the book assumes.  If your file is in that format, then I&amp;#8217;d need to see your master_crypo_provider.rb file to see what&amp;#8217;s on line 13.&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Fri, 21 Mar 2008 13:17:37 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:324:2471</guid>
      <author>Mike Clark</author>
      <link>http://forums.pragprog.com/forums/43/topics/324</link>
    </item>
    <item>
      <title>problems with Encrypt Sensitive Data and rails 2.0.2? Errno::ENOENT: No such file or directory - /Users/jane/Development/actsassecure/config/crypto.yml   posted by Charles Harvey @ Wed, 19 Mar 2008 03:02:05 -0000</title>
      <description>&lt;p&gt;When going through the tutorial I get&lt;/p&gt;


	&lt;p&gt;Loading development environment (Rails 2.0.2)&lt;br /&gt;&amp;gt;&amp;gt; SecretPatient.create(:name =&amp;gt; &amp;#8216;John Doe&amp;#8217;, :address =&amp;gt; &amp;#8216;Somewhere Secret&amp;#8217;, :ssn =&amp;gt; &amp;#8216;012-345-6789&amp;#8217;)    &lt;br /&gt;Errno::ENOENT: No such file or directory &amp;#8211; /Users/jane/Development/actsassecure/config/crypto.yml&lt;/p&gt;


	&lt;p&gt;then I created a blank file called config/crypto.yml and try again and I get&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;from (irb):1&amp;gt;&amp;gt; SecretPatient.create(:name =&amp;gt; 'John Doe', :address =&amp;gt; 'Somewhere Secret', :ssn =&amp;gt; '012-345-6789')  &lt;br /&gt;NoMethodError: undefined method `[]' for false:FalseClass
from /Users/jane/Development/actsassecure/lib/master_crypto_provider.rb:13&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;I have the latest acts_as_secure&lt;br /&gt;rel_0_0_3:&lt;br /&gt;date: 2007-06-26&lt;/p&gt;


	&lt;p&gt;and &lt;br /&gt;ezcrypto (0.7)&lt;/p&gt;


	&lt;p&gt;Best Regards-&lt;/p&gt;


	&lt;p&gt;Charles&lt;/p&gt;


	&lt;p&gt;See the pastie for a nice view&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://pastie.caboo.se/167623"&gt;http://pastie.caboo.se/167623&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;jane-harveys-computer:~/Development/actsassecure jane$ script/console&lt;br /&gt;Loading development environment (Rails 2.0.2)&lt;br /&gt;&amp;gt;&amp;gt; SecretPatient.create(:name =&amp;gt; &amp;#8216;John Doe&amp;#8217;, :address =&amp;gt; &amp;#8216;Somewhere Secret&amp;#8217;, :ssn =&amp;gt; &amp;#8216;012-345-6789&amp;#8217;)  &lt;br /&gt;Errno::ENOENT: No such file or directory &amp;#8211; /Users/jane/Development/actsassecure/config/crypto.yml
        from /usr/local/lib/ruby/1.8/yaml.rb:143:in `initialize&amp;#8217;
        from /usr/local/lib/ruby/1.8/yaml.rb:143:in `open&amp;#8217;
        from /usr/local/lib/ruby/1.8/yaml.rb:143:in `load_file&amp;#8217;
        from /Users/jane/Development/actsassecure/lib/master_crypto_provider.rb:13
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:203:in `load_file&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:202:in `load_file&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:94:in `require_or_load&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:248:in `load_missing_constant&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:260:in `load_missing_constant&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:469:in `const_missing&amp;#8217;
        from /Users/jane/Development/actsassecure/app/models/secret_patient.rb:10
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:203:in `load_file&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:202:in `load_file&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:94:in `require_or_load&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:248:in `load_missing_constant&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing&amp;#8217;
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing&amp;#8217; &lt;/p&gt;


	&lt;ol&gt;
	&lt;li&gt;So I created a blank config/crypto.yml file and tried again&lt;/li&gt;
	&lt;/ol&gt;


	&lt;pre&gt;&lt;code&gt;from (irb):1&amp;gt;&amp;gt; SecretPatient.create(:name =&amp;gt; 'John Doe', :address =&amp;gt; 'Somewhere Secret', :ssn =&amp;gt; '012-345-6789')  &lt;br /&gt;NoMethodError: undefined method `[]' for false:FalseClass
from /Users/jane/Development/actsassecure/lib/master_crypto_provider.rb:13
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:203:in `load_file'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:202:in `load_file'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:94:in `require_or_load'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:248:in `load_missing_constant'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:471:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:471:in `const_missing'
from /Users/jane/Development/actsassecure/app/models/secret_patient.rb:10
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:203:in `load_file'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:202:in `load_file'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:94:in `require_or_load'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:248:in `load_missing_constant'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing'
from (irb):2&amp;gt;&amp;gt;&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 19 Mar 2008 03:02:05 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:324:2463</guid>
      <author>Charles Harvey</author>
      <link>http://forums.pragprog.com/forums/43/topics/324</link>
    </item>
  </channel>
</rss>
