# Husteon I've got a problem

**URL:** <https://discuss.rubyonrails.org/t/husteon-ive-got-a-problem/19480>\
**Category:** rubyonrails-talk\
**Created:** [October 19, 2007, 11:17pm UTC](https://discuss.rubyonrails.org/t/husteon-ive-got-a-problem/19480 "2007-10-19T23:17:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcelo](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@Marcelo](https://discuss.rubyonrails.org/u/Marcelo)\
**Post date:** [October 19, 2007, 11:17pm UTC](https://discuss.rubyonrails.org/t/husteon-ive-got-a-problem/19480/1 "2007-10-19T23:17:07Z")

</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: &nbsp;&nbsp;&nbsp;&nbsp;Install the missing gem with 'gem install -v=1.1.6 rails', or &nbsp;&nbsp;&nbsp;&nbsp;change environment.rb to define RAILS\_GEM\_VERSION with your desired version.

Any help to run the server?

Thanks

---

<div class="post-metadata">

**Author:** ![William\_Pratt](https://avatars.discourse-cdn.com/v4/letter/w/9dc877/32.png) [@William\_Pratt](https://discuss.rubyonrails.org/u/William_Pratt)\
**Post date:** [October 19, 2007, 11:32pm UTC](https://discuss.rubyonrails.org/t/husteon-ive-got-a-problem/19480/2 "2007-10-19T23:32:15Z")

</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:

---

<div class="post-metadata">

**Author:** ![Joao\_Pedro](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@Joao\_Pedro](https://discuss.rubyonrails.org/u/Joao_Pedro)\
**Post date:** [October 19, 2007, 11:34pm UTC](https://discuss.rubyonrails.org/t/husteon-ive-got-a-problem/19480/3 "2007-10-19T23:34:11Z")

</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:** ![Ajit](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@Ajit](https://discuss.rubyonrails.org/u/Ajit)\
**Post date:** [October 20, 2007, 5:33pm UTC](https://discuss.rubyonrails.org/t/husteon-ive-got-a-problem/19480/4 "2007-10-20T17:33:32Z")

</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
