# How to downgrade Rake

**URL:** <https://www.ruby-forum.com/t/how-to-downgrade-rake/125640>\
**Category:** Rails\
**Created:** [January 10, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/how-to-downgrade-rake/125640 "2008-01-10T21:49:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubyfreak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Post date:** [January 10, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/how-to-downgrade-rake/125640/1 "2008-01-10T21:49:35Z")

</div>

Hello and thanks in advance

I had/have a problem with engines and rake that throws the error:  
undefined method `last’ for {}:Hash  
This is documented here:  
[http://railsforum.com/viewtopic.php?pid=50179](http://railsforum.com/viewtopic.php?pid=50179)

The fix is to downgrade Rake to version 7.3 (if you want to stay with  
rails 1.2.3 or 1.2.5 which I need for substruct)

I found this set of instructions that are at the bottom of this page,  
bit I think it is more for reinstalling gems 1.01 rather than just  
downgrading Rake.

to downgrade Rake, can I just do this?  
gem uninstall rake  
gem install rake ver=0.7.3

I am guessing at the syntax. could someone please give me the correct  
method(s)

Thanks in advance.

instructions for reinstalling gems 1.01  
1.Uninstall the current rails - gem uninstall rails  
2. Uninstall the current rake - gem uninstall rake (with out this  
rails installation was throwing error)  
3.clean up - gem clean  
4.Down load the gems 1.0.1, unzip it  
5.cd to the gems unziped folder  
6.install new gem - ruby setup.rb  
7. verify - gem -v , should report 1.0.1  
8.clean up again - gem clean  
9.Install rake - gem install rake , this will install rake 0.8.1  
10.install rails - gem install rails thats it…it took some combos for  
me to figure this out
