# Husteon I've got a problem

**URL:** <https://www.ruby-forum.com/t/husteon-ive-got-a-problem/117767>\
**Category:** Rails\
**Created:** [October 20, 2007, 1:17am UTC](https://www.ruby-forum.com/t/husteon-ive-got-a-problem/117767 "2007-10-20T01:17:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcelo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@marcelo](https://www.ruby-forum.com/u/marcelo)\
**Post date:** [October 20, 2007, 1:17am UTC](https://www.ruby-forum.com/t/husteon-ive-got-a-problem/117767/1 "2007-10-20T01:17:39Z")

</div>

Hello

This is my first contact with Ruby on Rails, and I am dissapointed of  
it

I installed:

ruby186-25  
rails-1.2.5  
and the last version of APTANA

When I try to run the server I get the following error:

Cannot find gem for Rails =1.1.6:  
Install the missing gem with ‘gem install -v=1.1.6 rails’, or  
change environment.rb to define RAILS\_GEM\_VERSION with your  
desired version.

Any help to run the server?

Thanks

---

<div class="post-metadata">

**Author:** ![marcelo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@marcelo](https://www.ruby-forum.com/u/marcelo)\
**Post date:** [October 20, 2007, 1:32am UTC](https://www.ruby-forum.com/t/husteon-ive-got-a-problem/117767/2 "2007-10-20T01:32:55Z")

</div>

My assumption is that the wrong version of rails is set in  
config/environment.rb. You should see a line like the following:

# Specifies gem version of Rails to use when vendor/rails is not present

RAILS\_GEM\_VERSION = ‘1.2.5’ unless defined? RAILS\_GEM\_VERSION

Make sure it is set to 1.2.5 not 1.1.6. If this is set properly, is it  
set wrong in the machines environment? If you are running Linux, does  
the following command show 1.1.6 ?

echo $RAILS\_GEM\_VERSION

If neither of these are the problem, it may be something with your  
Aptana install. Can you start the webbrick server on the command line  
with:

script/server

or on windows (I think)

ruby script\server

If that starts ok, you will need to post to the Aptana forums for help.  
[http://aptana.com/forums](http://aptana.com/forums)

-Bill

Marcelo wrote:

> >

–  
Sincerely,

William P.

---

<div class="post-metadata">

**Author:** ![marcelo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@marcelo](https://www.ruby-forum.com/u/marcelo)\
**Post date:** [October 20, 2007, 1:34am UTC](https://www.ruby-forum.com/t/husteon-ive-got-a-problem/117767/3 "2007-10-20T01:34:40Z")

</div>

On your project directory, inside /config there’s a environment.rb  
file.

Edit RAILS\_GEM\_VERSION variable to your current rails version (1.2.5).

Cheers!

---

<div class="post-metadata">

**Author:** ![marcelo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@marcelo](https://www.ruby-forum.com/u/marcelo)\
**Post date:** [October 20, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/husteon-ive-got-a-problem/117767/4 "2007-10-20T19:34:14Z")

</div>

I had same problem few days back.

Please follow these steps to make things working:

Install latest version of Ruby  
install gems  
after installing gems  
in windows command line: gem install rails  
then gem update  
you can use Aptana or RadRails  
Webrick is default server but you can install Mongrel as well,  
goto your project directory through command line and type  
mongrel\_rails start -p 3000

try in browser [http://localhost:3000](http://localhost:3000)

i hope it will work for you.

Happy Programming

Ajit
