# Launching server from Aptana

**URL:** <https://www.ruby-forum.com/t/launching-server-from-aptana/136337>\
**Category:** Rails\
**Created:** [April 30, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/launching-server-from-aptana/136337 "2008-04-30T22:50:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joernborup](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joernborup](https://www.ruby-forum.com/u/joernborup)\
**Post date:** [April 30, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/launching-server-from-aptana/136337/1 "2008-04-30T22:50:30Z")

</div>

Hi Rails group… (new to Rails/ruby, so please excuse if this is dumb  
question…)

I have installed Rails, and done some small testing. Had the server up  
and running, and I did get the ‘default’ page.

Then I installed the 'Aptana Studio RadRails (version RadRails  
1.0.1.200803281641NGT). when I launched the Aptana-\>Rails perspective, a  
lots of ruby/rails stuff got installed.

When I create a Rails project (inside Aptana), and try to start the  
server (both Webrick and the Mongrel), I get this message:

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

“1758357710”

If I run the server in the terminal (go to the project, run  
script/server) I got the same message. But after a lot of trying,  
running this command ‘gem install -v=1.2.4 rails’ it installed a lot of  
stuff, and it now works from the terminal. But I get the same error from  
the Aptana tool. I have tried to reboot. I’m running Ubuntu 7.10. Have  
tried to build new project, after the install, same result.

If I run the gem install again, it just says 'Successfully installed  
rails-1.2.4  
', so this version should be installed…

What should I do ??

Regards JÃ¸rn

---

<div class="post-metadata">

**Author:** ![joernborup](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joernborup](https://www.ruby-forum.com/u/joernborup)\
**Post date:** [May 1, 2008, 12:29am UTC](https://www.ruby-forum.com/t/launching-server-from-aptana/136337/2 "2008-05-01T00:29:37Z")

</div>

open the environment.rb file and edit the line that has rails version.

On Apr 30, 1:50 pm, Joern B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![joernborup](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joernborup](https://www.ruby-forum.com/u/joernborup)\
**Post date:** [May 1, 2008, 12:44am UTC](https://www.ruby-forum.com/t/launching-server-from-aptana/136337/3 "2008-05-01T00:44:53Z")

</div>

Actually that is a pretty brief answer.  
in the cmd window type rails -v  
you probably will see 2.0.2

For some reason, it appears that Aptana thinks you are running rails  
version1.2.4 which if it existed, only lasted like days until it was  
replaced due to a bug and Rails 1.2.5 was released.

Open Apatana and look in the vendor directory and see if there is a  
rails directory. This is where Rail would be installed if rails was  
frozen to version 1.2.4

if so, type rails:unfreeze (that might me wrong, but it is close.  
Google it)  
or just delete the rails directory in project/vendor/rails

Update Apatana?

hope this helps
