Welcome Guest | Login

Migrating to Rails Gems 2.0.2

I am trying to use the "will_paginate" gem.  I added the following line and this did not work.

require 'will_paginate'


I found out that to make it work I believe I need to update to 2.0.2 to get it to work.  So I added the line in environment.rb (this seems to work on my local though):

RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION


Then my site failed to load (500 Error).  I looked at the log and I got this:

"A secret is required to generate an integrity hash for cookie session data"


I then logged into the shell and ran the following to generate a secret phrase:

'rake secret'


I then got the following error:

rake aborted!
Don't know how to build task 'secret'


What am I missing that I still need to do?

Thanks,
Grant

2008-04-23 07:44 PM

Hi Renderbox,

The issue has been fixed. In the config/environment.rb file in the " :secret " section the key is missing. I have given the required key and now your application is loading fine.  

2008-04-23 08:27 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.