[Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread RVic
Further on migrating my ancient 1.8.6 Rails 2.3.2 app from Windows to Linux Mint, whatever I do, I keep getting the same error pertaining to * A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key = _myapp_session, :secret = some secret

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Hassan Schroeder
On Mon, Oct 28, 2013 at 12:45 PM, RVic rvinc...@hotmail.com wrote: Further on migrating my ancient 1.8.6 Rails 2.3.2 app from Windows to Linux Mint Are you sure your time wouldn't be better spent just moving straight to current versions of Ruby and Rails? :-) It might actually be easier than

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Ralph Vince
On Mon, Oct 28, 2013 at 4:09 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: Are you sure your time wouldn't be better spent just moving straight to current versions of Ruby and Rails? :-) It might actually be easier than what you're doing now, and at the end you'd have something

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Colin Law
On 28 October 2013 19:45, RVic rvinc...@hotmail.com wrote: Further on migrating my ancient 1.8.6 Rails 2.3.2 app from Windows to Linux Mint, whatever I do, I keep getting the same error pertaining to A key is required to write a cookie containing the session data. Use

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Ralph Vince
On Mon, Oct 28, 2013 at 5:12 PM, Colin Law clan...@googlemail.com wrote: Can you paste your environment.rb here please? Colin Thanks Colin! # Be sure to restart your web server when you modify this file. # Uncomment below to force Rails into production mode when # you don't control

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Colin Law
On 28 October 2013 21:19, Ralph Vince rvinc...@gmail.com wrote: On Mon, Oct 28, 2013 at 5:12 PM, Colin Law clan...@googlemail.com wrote: Can you paste your environment.rb here please? Colin Thanks Colin! # Be sure to restart your web server when you modify this file. # Uncomment

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Ralph Vince
On Mon, Oct 28, 2013 at 5:32 PM, Colin Law clan...@googlemail.com wrote: On 28 October 2013 21:19, Ralph Vince rvinc...@gmail.com wrote: On Mon, Oct 28, 2013 at 5:12 PM, Colin Law clan...@googlemail.com wrote: Can you paste your environment.rb here please? Colin Thanks

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Ralph Vince
I think the issue may be something else Colin. For example, this error seems to crop up no matte what the command is: user@Mint15-32 ~/ggrip/ggripv2 $ rake rails:update rake aborted! A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key =

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Colin Law
On 28 October 2013 21:46, Ralph Vince rvinc...@gmail.com wrote: Colin, I made the changes you said to make here (I did, well before, do rake db:sessions:create and have the table resident in the db). I;ve lso tried using :session_key in instead of :key.noe of which seems to be affecting

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Colin Law
On 28 October 2013 21:51, Ralph Vince rvinc...@gmail.com wrote: I think the issue may be something else Colin. For example, this error seems to crop up no matte what the command is: user@Mint15-32 ~/ggrip/ggripv2 $ rake rails:update rake aborted! A key is required to write a cookie

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Ralph Vince
On Mon, Oct 28, 2013 at 5:58 PM, Colin Law clan...@googlemail.com wrote: It is very odd, firstly it should not be using the cookie store, and if it were then you have provided the session key. I have tried it and it works for me with either :key or :session_key, and if I enable the

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Ralph Vince
Wait, Stupid me. The database login parameters have changed -- when I change that, it gets past that error (give me a new one, of coursem but that must be the problem). I fixed it in database.yml. On Mon, Oct 28, 2013 at 6:04 PM, Ralph Vince rvinc...@gmail.com wrote: On Mon, Oct 28, 2013

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Colin Law
On 28 October 2013 22:04, Ralph Vince rvinc...@gmail.com wrote: On Mon, Oct 28, 2013 at 5:58 PM, Colin Law clan...@googlemail.com wrote: It is very odd, firstly it should not be using the cookie store, and if it were then you have provided the session key. I have tried it and it works

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Ralph Vince
And...once I get that one fixed...I'm right back to the original error! On Mon, Oct 28, 2013 at 6:10 PM, Ralph Vince rvinc...@gmail.com wrote: Wait, Stupid me. The database login parameters have changed -- when I change that, it gets past that error (give me a new one, of coursem but that

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Ralph Vince
Thanks Colin. How would you enable active_record_store? Perhaps I should try that first? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Ralph Vince
I think there's more wrong here than what the error message suggests. For example: user@Mint15-32 ~/ggrip/ggripv2 $ gem install rails -v 2.3.2 Successfully installed rails-2.3.2 1 gem installed Installing ri documentation for rails-2.3.2... Installing RDoc documentation for rails-2.3.2...

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Walter Lee Davis
On Oct 28, 2013, at 6:29 PM, Ralph Vince wrote: I think there's more wrong here than what the error message suggests. For example: user@Mint15-32 ~/ggrip/ggripv2 $ gem install rails -v 2.3.2 Successfully installed rails-2.3.2 1 gem installed Installing ri documentation for

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread R Vince
On Mon, Oct 28, 2013 at 6:33 PM, Walter Lee Davis wa...@wdstudio.comwrote: Yes. I'm late to the party here, but are you using rvm on this server? What does your PATH look like? If you aren't using rvm, then have you tried using sudo, as in sudo gem install rails -v 2.3.2 Without rvm, you

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Hassan Schroeder
On Mon, Oct 28, 2013 at 3:42 PM, R Vince rvinc...@gmail.com wrote: I AM using rvm. My path: user@Mint15-32 ~/ggrip/ggripv2 $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user/.rvm/bin Uh, well. It looks like rvm is installed, but

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread R Vince
On Mon, Oct 28, 2013 at 7:30 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Mon, Oct 28, 2013 at 3:42 PM, R Vince rvinc...@gmail.com wrote: I AM using rvm. My path: user@Mint15-32 ~/ggrip/ggripv2 $ echo $PATH

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread Hassan Schroeder
On Mon, Oct 28, 2013 at 4:49 PM, R Vince rvinc...@gmail.com wrote: user@Mint15-32 ~/ggrip/ggripv2 $ rvm current ruby-1.8.6-p420 which is correct. The /home/user/.rvm/bin in the PATH is correct, yes? What else are you saying should be in the PATH? THanks. When you install gems that include a

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread R Vince
On Mon, Oct 28, 2013 at 8:09 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: When you install gems that include a command-line component, e.g. rails, the executables need to live somewhere in your path. Here's an example from one of my rvm gemsets:

Re: [Rails] Rails 2.3.2 and config.action_controller.session

2013-10-28 Thread R Vince
Hassan, So, according to your instructions, do I need to only add the path to rails? Where would that be under .rvm? Thank you! On Mon, Oct 28, 2013 at 8:09 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: When you install gems that include a command-line component, e.g. rails, the