# Error reverting back to a previous version of rails

**URL:** <https://www.ruby-forum.com/t/error-reverting-back-to-a-previous-version-of-rails/164753>\
**Category:** Rails\
**Created:** [April 5, 2009, 10:25am UTC](https://www.ruby-forum.com/t/error-reverting-back-to-a-previous-version-of-rails/164753 "2009-04-05T10:25:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![furrot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3da27b/32.png) [@furrot](https://www.ruby-forum.com/u/furrot)\
**Post date:** [April 5, 2009, 10:25am UTC](https://www.ruby-forum.com/t/error-reverting-back-to-a-previous-version-of-rails/164753/1 "2009-04-05T10:25:37Z")

</div>

I want to revert back to a previous version of rails (1.2.3) but the  
project I want to work on was created in 2.0.2. I have uninstalled 2.0.2  
and gem installed 1.2.3 but when I run script\server I get the following  
error. (I’m guessing its to do with my environment file but I’m pretty  
new to Rails so Im not sure.)

c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:328:in  
`send': undefined method`session=’ for ActionController::Base:Class  
(NoMethodError)

Anyone any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![furrot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3da27b/32.png) [@furrot](https://www.ruby-forum.com/u/furrot)\
**Post date:** [April 5, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/error-reverting-back-to-a-previous-version-of-rails/164753/2 "2009-04-05T12:13:51Z")

</div>

Stephen F. wrote:

> I want to revert back to a previous version of rails (1.2.3) but the  
> project I want to work on was created in 2.0.2. I have uninstalled 2.0.2  
> and gem installed 1.2.3 but when I run script\server I get the following  
> error. (I’m guessing its to do with my environment file but I’m pretty  
> new to Rails so Im not sure.)
> 
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:328:in  
> `send': undefined method`session=’ for ActionController::Base:Class  
> (NoMethodError)
> 
> Anyone any ideas?
> 
> Thanks

I have narrowed it down to this piece of code in config\environment.rb:

config.action\_controller.session = {  
:session\_key =\> ‘\_linkitb\_session’,  
:secret =\>  
‘ec87782d1ced62d9adf7bb29f9dea79026c62d16f4a6a3d35098cf198274193355187a784f66d8f3836efa70e5c6c4301c9b6819f7f1c196c3b853a0b6f9148b’  
}

If I comment this out the server boots no problem but I get an error  
when I open up localhost:3000 in the browser. Has nyone a sloution to  
this?

Thanks.

---

<div class="post-metadata">

**Author:** ![furrot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3da27b/32.png) [@furrot](https://www.ruby-forum.com/u/furrot)\
**Post date:** [April 5, 2009, 8:14pm UTC](https://www.ruby-forum.com/t/error-reverting-back-to-a-previous-version-of-rails/164753/3 "2009-04-05T20:14:12Z")

</div>

On Sun, Apr 5, 2009 at 3:13 AM, Stephen F.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > I want to revert back to a previous version of rails (1.2.3) but the  
> > project I want to work on was created in 2.0.2.

> > c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:328:in  
> > `send': undefined method `session=’ for ActionController::Base:Class  
> > (NoMethodError)

> I have narrowed it down to this piece of code in config\environment.rb:

> If I comment this out the server boots no problem but I get an error  
> when I open up localhost:3000 in the browser. Has nyone a sloution

1. drop the idea of moving backwards – I mean WTF? Why? 🙂

2. look at the difference between 1.2.3 and 2.0.2 ActionController  
code and add the functionality missing in 1.2.3

3. #2 could also be done by running your tests and doing whatever  
necessary to make them pass.

## FWIW,

Hassan S. ------------------------ removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![furrot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3da27b/32.png) [@furrot](https://www.ruby-forum.com/u/furrot)\
**Post date:** [April 13, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/error-reverting-back-to-a-previous-version-of-rails/164753/4 "2009-04-13T18:40:25Z")

</div>

Hassan S. wrote:

> On Sun, Apr 5, 2009 at 3:13 AM, Stephen F.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > I want to revert back to a previous version of rails (1.2.3) but the  
> > > project I want to work on was created in 2.0.2.
> 
> > > c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:328:in  
> > > `send': undefined method `session=’ for ActionController::Base:Class  
> > > (NoMethodError)
> 
> > I have narrowed it down to this piece of code in config\environment.rb:
> 
> > If I comment this out the server boots no problem but I get an error  
> > when I open up localhost:3000 in the browser. Has nyone a sloution
> 
> 1. drop the idea of moving backwards – I mean WTF? Why? 🙂
> 
> 2. look at the difference between 1.2.3 and 2.0.2 ActionController  
> code and add the functionality missing in 1.2.3
> 
> 3. #2 could also be done by running your tests and doing whatever  
> necessary to make them pass.
> 
> ## FWIW,
> 
> Hassan S. ------------------------ removed\_email\_address@domain.invalid

Hi,

Thanks for the reply. (Sorry, don’t get on here much!). I went with your  
1st suggestion and changed the code to suit V2.0.2.
