Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7507789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:33:24+00:00 2026-05-29T22:33:24+00:00

I am using Aptana Studio 3 and having trouble creating a rails project in

  • 0

I am using Aptana Studio 3 and having trouble creating a rails project in the IDE. Aptana tries to create a new rails project using the command rails . instead of rails new .

I used the solution at:

Cannot create a new Rails Project with Aptana Studio 3

involves installing ruby then rails and then Aptana which rectified problem until I updated rails using gem update. This made Aptana repeat the behaviour above and did not create the project although, rails -v shows the expected version. What was shown on the Aptana console was the rails usage help text.

Is there any way to make Aptana use the correct syntax and/or version of rails even after updating the rails version?

I obviously do no wish to go through the whole installation again and believe that there is some configuration setting I am missing.

FYI my configuration details are:

  • Operating System: Kubuntu 11.10
  • Ruby version: ruby 1.9.3p0
  • Rails version: Rails 3.1.3
  • Aptana IDE: 3.0.6

TIA

nav

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:33:25+00:00Added an answer on May 29, 2026 at 10:33 pm

    It’s an issue with environment variables. The Aptana Getting Started Guide mentions that:

    You should also make sure that your login PATH is set up correctly
    such that you can execute the ruby, gem, rails, and git commands
    correctly. Setting these things up in your .bashrc (or equivalent)
    isn’t sufficient, because it doesn’t get evaluated by default when GUI
    applications like Aptana Studio 3 get launched.

    So the problem must be that Aptana doesn’t see the right path and/or environment variables. I have Kubuntu 11.04 64-bits and Kubuntu 11.10 32-bits and the problem shows on both machines using Aptana Studio 3.0.8. How to set the “login PATH” then?

    In the Ubuntu family, and any Linux distribution that uses Linux PAM, session-wide environment variables can be set with a .pam_environment file in the home folder. (KDE also offers a way to set session environment variables, but setting a .pam_environment is sufficient).

    But only setting the PATH environment variable does not work (I’ve tried). You must also set GEM_HOME and GEM_PATH.

    The .pam_environment file has a very specific syntax. I’m using rvm to install Ruby and Ruby on Rails. So here is my .pam_environment file:

    RUBY_VERSION OVERRIDE=ruby-1.9.3-p0
    rvm_path DEFAULT=/home/sylvain/.rvm
    rvm_bin_path DEFAULT=${rvm_path}/bin
    GEM_HOME DEFAULT=${rvm_path}/gems/${RUBY_VERSION}
    GEM_PATH DEFAULT=${GEM_HOME}:${GEM_HOME}@global
    PATH OVERRIDE=${GEM_HOME}/bin:${GEM_HOME}@global/bin:${rvm_path}/rubies/${RUBY_VERSION}/bin:${rvm_bin_path}:${PATH}
    

    You’ll note that even though I’m using rvm, these variables fix a specific version of Ruby and gemset.

    You must adapt those values for your own environment. Note that I used variables that rvm sets in .bashrc: RUBY_VERSION, rvm_path and rvm_bin_path. I could have only specified GEM_HOME, GEM_PATH and PATH, but then the result wouldn’t have been DRY. 😉 In other words, I would have had to duplicate paths. Note that I didn’t use the HOME environment variable, because it doesn’t seem to exist outside of the shell.

    After rebooting, I’ve tried creating a Ruby on Rails project, as well as generators (Commands menu > Rails > Call Generate Script with Controller and Model) and it works, at last, when I start Aptana Studio 3 from a desktop shortcut.

    And finally, the Getting Started guide states that:

    If getting your login PATH set up in this way isn’t practical for you,
    you can work around the problem by launching Aptana Studio 3 from the
    command line, using the studio3 command line utility.

    Since opening a console and typing {my_path_to_aptana_studio_3}/studio3 is a hassle, I first tried making a desktop shortcut to “/opt/aptana3/studio3”, “konsole -e /opt/aptana3/studio3”, or “bash -c /opt/aptana3/studio3”; nothing worked.

    So I tried putting an alias in my .bashrc file, so I wouldn’t have to type the whole thing from a console everytime: alias aptana=”/opt/aptana3/studio3″

    It didn’t work either. I realized that in order for the command to work, it must be executed from the Aptana folder. So the following worked:

    alias aptana="cd /opt/aptana3 ; ./studio3"
    

    UPDATE: The .pam_environment solution does not work for Kubuntu 11.04 64 bits, so I assume it would not work for Ubuntu 11.04 either. However, for Kubuntu, setting session-wide environment variables for GEM_HOME, GEM_PATH and PATH in a shell script in ~/.kde/env works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've installed Aptana Studio 3 today, and been trying to create a new Rails
I'm brand new at Ruby. Trying to set up the first application/project using Aptana
My Rails development IDE is Aptana Studio 3.0.5, running on Windows. The applications runs
I'm trying to get into Rails development and am using Aptana Studio (RadRails) as
using aptana studio 3, I found the following has no code assist var myDate=new
I am learning ruby on rails using aptana studio 3. I created a view
I`m having a problem with cloning github repository using Aptana Studio 3. I selected
I am new to Eclipse (Indigo) and using it with Aptana Studio for Ruby
I'm using Aptana Studio with Pydev 1.5.3 to debug my Django applications. I use
I am developing a small testing website using Django 1.2 in Aptana Studio build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.